Skip to content

Commit e2832ef

Browse files
committed
Add a workflow to label issues
This ensures new and reopened issues are labeled sig/multicluster, which makes them show up in our triage filter. Labels could also be added using issue templates, but users can always choose to create an issue using a blank template and thereby skip the automatic labeling. Using a workflow ensures all issues are caught. Signed-off-by: Stephen Kitt <skitt@redhat.com>
1 parent 9f20057 commit e2832ef

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/auto-label.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Label issues
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
jobs:
9+
label_issues:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
steps:
14+
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
GH_REPO: ${{ github.repository }}
18+
NUMBER: ${{ github.event.issue.number }}
19+
LABELS: sig/multicluster

0 commit comments

Comments
 (0)