Add PR labeler with pull_request_target (#1338)

* Add PR labeler with pull_request_target
This commit is contained in:
John McBride 2021-02-15 10:48:09 -07:00 committed by GitHub
parent b312f0a8ef
commit b55fa79836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

16
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,16 @@
# changes to documentation generation
"area/doc-gen": doc/**/*
# changes to the core Go cobra lib package
"area/lib": ./*.go
# changes to the Cobra CLI
"area/cli": cobra/**/*
# changes to Github workflows
"area/github": .github/**/*
# changes to shell completions
"area/*sh completion":
- ./*completions*

12
.github/workflows/labeler.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: "Pull Request Labeler"
on:
- pull_request_target
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ github.token }}"