Skip to content

Commit 2ede20b

Browse files
committed
add set label triage action
1 parent 5a04fbc commit 2ede20b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/on-issue-opened.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Label issues
2+
3+
on:
4+
issues:
5+
types:
6+
- reopened
7+
- opened
8+
9+
permissions:
10+
issues: write
11+
12+
jobs:
13+
label_issues:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/github-script@1f16022c7518aad314c43abcd029895291be0f52
17+
with:
18+
script: |
19+
github.rest.issues.addLabels({
20+
issue_number: context.issue.number,
21+
owner: context.repo.owner,
22+
repo: context.repo.repo,
23+
labels: ["triage"]
24+
})

0 commit comments

Comments
 (0)