Skip to content

Commit 65c322a

Browse files
committed
Test: Auto labeling
1 parent 292ab7f commit 65c322a

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/labeler-config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add/remove 'critical' label if issue contains the words 'urgent' or 'critical'
2+
critical:
3+
- '(critical|urgent)'
4+
5+
# Add/remove 'bug' label if issue contains the word 'bug'
6+
bug:
7+
- 'bug'
8+
- 'fix'
9+
- 'broken'
10+
- 'error'
11+
- 'issue'
12+
- 'problem'
13+
- 'crash'
14+
15+
# Add the triage label to all issues/PRs
16+
triage:
17+
- '/.*/'

.github/workflows/labeler.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Issue Labeler"
2+
on:
3+
issues:
4+
types: [opened, edited]
5+
pull_request:
6+
types: [opened, edited]
7+
8+
permissions:
9+
issues: write
10+
contents: read
11+
12+
jobs:
13+
triage:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: github/issue-labeler@v3.4
17+
with:
18+
configuration-path: .github/labeler-config.yml
19+
enable-versioned-regex: 1
20+
sync-labels: 1
21+
include-title: 1
22+
include-body: 0
23+
repo-token: ${{ github.token }}

0 commit comments

Comments
 (0)