Skip to content

Commit f088ef1

Browse files
daverogeadimoft
andauthored
Create auto-label-on-assign.yml (#984)
Co-authored-by: Alexandru Dimofte <[email protected]>
1 parent c1b7648 commit f088ef1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SPDX-FileCopyrightText: 2025 Intel Corporation
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
---
6+
7+
name: Auto Label on Issue Assignment
8+
9+
on:
10+
workflow_dispatch:
11+
issues:
12+
types: [assigned]
13+
14+
permissions:
15+
issues: write
16+
17+
jobs:
18+
add-label:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Add label when issue is assigned
23+
uses: actions/github-script@v8
24+
with:
25+
script: |
26+
await github.rest.issues.addLabels({
27+
issue_number: context.issue.number,
28+
owner: context.repo.owner,
29+
repo: context.repo.repo,
30+
labels: ['investigating']
31+
})

0 commit comments

Comments
 (0)