chore: Revert "chore: fix PR labeler for forked PRs" (#3912)

This reverts commit cd79ea70243bd175489d7fb92ed50d3b620e969a.
This commit is contained in:
Erez Rokah 2020-06-18 10:29:32 +03:00 committed by GitHub
parent af7bbbd9a9
commit c65dbc0123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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