chore: fix PR labeler for forked PRs (#3902)

This commit is contained in:
Erez Rokah 2020-06-15 14:33:11 +03:00 committed by GitHub
parent 699526c23b
commit ca5b60ae7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,26 +5,25 @@ on:
jobs:
label-pr:
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-latest
steps:
- uses: erezrokah/pr-labeler-action@v1.0.0
if: startsWith(github.event.pull_request.title, 'fix')
with:
token: '${{ secrets.GITHUB_TOKEN }}'
token: '${{ secrets.PR_LABELER_TOKEN }}'
label: 'type: bug'
- uses: erezrokah/pr-labeler-action@v1.0.0
if: startsWith(github.event.pull_request.title, 'chore')
with:
token: '${{ secrets.GITHUB_TOKEN }}'
token: '${{ secrets.PR_LABELER_TOKEN }}'
label: 'type: chore'
- uses: erezrokah/pr-labeler-action@v1.0.0
if: startsWith(github.event.pull_request.title, 'feat')
with:
token: '${{ secrets.GITHUB_TOKEN }}'
token: '${{ secrets.PR_LABELER_TOKEN }}'
label: 'type: feature'
- uses: erezrokah/pr-labeler-action@v1.0.0
if: startsWith(github.event.pull_request.title, 'security')
with:
token: '${{ secrets.GITHUB_TOKEN }}'
token: '${{ secrets.PR_LABELER_TOKEN }}'
label: 'type: security'