-
Notifications
You must be signed in to change notification settings - Fork 1.2k
34 lines (32 loc) · 928 Bytes
/
triage-issues.yml
File metadata and controls
34 lines (32 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Label incoming issues
on:
issues:
types:
- reopened
- opened
- unlabeled
permissions:
issues: write
jobs:
label_incoming_issues:
runs-on: ubuntu-latest
if: github.event.action == 'opened' || github.event.action == 'reopened'
steps:
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: triage
label_more_info_issues:
if:
github.event.action == 'unlabeled' && github.event.label.name ==
'more-info-needed'
runs-on: ubuntu-latest
steps:
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: triage