Skip to content

Commit

Permalink
Add PR labeler with pull_request_target (spf13#1338)
Browse files Browse the repository at this point in the history
* Add PR labeler with pull_request_target
  • Loading branch information
jpmcb authored Feb 15, 2021
1 parent b312f0a commit b55fa79
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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 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@v3
with:
repo-token: "${{ github.token }}"

0 comments on commit b55fa79

Please sign in to comment.