Skip to content
31 changes: 31 additions & 0 deletions .github/workflows/auto-label-on-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# SPDX-FileCopyrightText: 2025 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

---

name: Auto Label on Issue Assignment

on:
workflow_dispatch:
issues:
types: [assigned]

permissions:
issues: write

jobs:
add-label:
runs-on: ubuntu-latest

steps:
- name: Add label when issue is assigned
uses: actions/github-script@v8
with:
script: |
await github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['investigating']
})
Loading