c65dbc0123
This reverts commit cd79ea70243bd175489d7fb92ed50d3b620e969a.
31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
name: Label PR
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited]
|
|
|
|
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 }}'
|
|
label: 'type: bug'
|
|
- uses: erezrokah/pr-labeler-action@v1.0.0
|
|
if: startsWith(github.event.pull_request.title, 'chore')
|
|
with:
|
|
token: '${{ secrets.GITHUB_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 }}'
|
|
label: 'type: feature'
|
|
- uses: erezrokah/pr-labeler-action@v1.0.0
|
|
if: startsWith(github.event.pull_request.title, 'security')
|
|
with:
|
|
token: '${{ secrets.GITHUB_TOKEN }}'
|
|
label: 'type: security'
|