Skip to content

Commit 5d2ff1d

Browse files
authored
Modify GitHub Actions workflow for issue labeling of triage
1 parent 2014f9f commit 5d2ff1d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/blank.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Label incoming issues
2+
on:
3+
issues:
4+
types:
5+
- reopened
6+
- opened
7+
- unlabeled
8+
9+
permissions:
10+
issues: write
11+
12+
jobs:
13+
label_incoming_issues:
14+
runs-on: ubuntu-latest
15+
if: github.event.action == 'opened' || github.event.action == 'reopened'
16+
steps:
17+
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
18+
env:
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
GH_REPO: ${{ github.repository }}
21+
NUMBER: ${{ github.event.issue.number }}
22+
LABELS: triage
23+
label_more_info_issues:
24+
if:
25+
github.event.action == 'unlabeled' && github.event.label.name ==
26+
'more-info-needed'
27+
runs-on: ubuntu-latest
28+
steps:
29+
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
30+
env:
31+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
GH_REPO: ${{ github.repository }}
33+
NUMBER: ${{ github.event.issue.number }}
34+
LABELS: triage

0 commit comments

Comments
 (0)