Skip to content

Commit 324f82a

Browse files
committed
ci(github-actions): add issue and pr labeler
1 parent 20f0e62 commit 324f82a

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
'issue-status: needs-triage':
2+
- '**/*'

.github/workflows/label_issues.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
name: Label issues
2+
13
on:
24
issues:
35
types:
46
- opened
57
- reopened
68

79
jobs:
8-
apply-label:
10+
label-issue:
11+
permissions:
12+
issues: write
913
runs-on: ubuntu-latest
1014
steps:
1115
- uses: actions/github-script@v6

.github/workflows/label_pr.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Label Pull Request"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
label-pr:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v4

0 commit comments

Comments
 (0)