Skip to content

Commit

Permalink
add GitHub Action labeler to automatically add labels in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
fty4 committed Oct 15, 2021
1 parent 836e86b commit 2214e76
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# add 'documentation' label to any changes in docs directory
documentation:
- "README.md"

# add 'test' label to any changes related to go test
test:
- "*_test.go"
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "pull request labeler"
on:
- pull_request_target

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

0 comments on commit 2214e76

Please sign in to comment.