Skip to content

Commit

Permalink
chore: introduce pr-triage-manager to pr-labeler workflow (#19530)
Browse files Browse the repository at this point in the history
`pr-triage-manager` will copy labels from linked issues to the PR. 

Only linked issues that will be closed when the PR is merged will be used. If a PR will close multiple issues, the highest priority will be selected.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
kaizencc committed Mar 23, 2022
1 parent 92ae07d commit 7104d2c
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/pr-labeler.yml
Expand Up @@ -3,7 +3,10 @@
name: pr-labeler
on:
pull_request:
types: [ opened ]
types:
- opened
- edited
- reopened

jobs:
auto-approve:
Expand All @@ -13,6 +16,16 @@ jobs:
pull-requests: write
issues: write
steps:
- run: gh pr edit ${{ github.event.pull_request.number }} --add-label "auto-approve" -R ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh pr edit ${{ github.event.pull_request.number }} --add-label "auto-approve" -R ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
copy-labels:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: kaizen3031593/pr-triage-manager@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}


0 comments on commit 7104d2c

Please sign in to comment.