Skip to content

Commit c8822b2

Browse files
docs: add workflow to trigger labeler-config file
1 parent 8ca387f commit c8822b2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/add-labels-pr.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# reference: https://github.com/hoho4190/issue-pr-labeler
2+
name: PR Labeler
3+
4+
on:
5+
pull_request_target:
6+
types:
7+
- opened
8+
- reopened
9+
10+
jobs:
11+
main:
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
contents: read # to read configuration yml file
16+
pull-requests: write # to add labels to pull requests
17+
18+
steps:
19+
- name: Run PR Labeler
20+
uses: hoho4190/issue-pr-labeler@v1
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
config-file-name: labeler-config.yml
24+
# disable-bot: true # this will prevent issues, PRs created by bots

0 commit comments

Comments
 (0)