Add PR labeler with pull_request_target (#1338)
* Add PR labeler with pull_request_target
This commit is contained in:
parent
b312f0a8ef
commit
b55fa79836
16
.github/labeler.yml
vendored
Normal file
16
.github/labeler.yml
vendored
Normal 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
12
.github/workflows/labeler.yml
vendored
Normal 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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user