2020-05-13 12:14:09 +03:00
|
|
|
name: Label PR
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, edited]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
label-pr:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: erezrokah/pr-labeler-action@v1.0.0
|
|
|
|
if: startsWith(github.event.pull_request.title, 'fix')
|
|
|
|
with:
|
2020-06-15 14:33:11 +03:00
|
|
|
token: '${{ secrets.PR_LABELER_TOKEN }}'
|
2020-05-13 12:14:09 +03:00
|
|
|
label: 'type: bug'
|
|
|
|
- uses: erezrokah/pr-labeler-action@v1.0.0
|
|
|
|
if: startsWith(github.event.pull_request.title, 'chore')
|
|
|
|
with:
|
2020-06-15 14:33:11 +03:00
|
|
|
token: '${{ secrets.PR_LABELER_TOKEN }}'
|
2020-05-13 12:14:09 +03:00
|
|
|
label: 'type: chore'
|
|
|
|
- uses: erezrokah/pr-labeler-action@v1.0.0
|
|
|
|
if: startsWith(github.event.pull_request.title, 'feat')
|
|
|
|
with:
|
2020-06-15 14:33:11 +03:00
|
|
|
token: '${{ secrets.PR_LABELER_TOKEN }}'
|
2020-05-13 12:14:09 +03:00
|
|
|
label: 'type: feature'
|
|
|
|
- uses: erezrokah/pr-labeler-action@v1.0.0
|
|
|
|
if: startsWith(github.event.pull_request.title, 'security')
|
|
|
|
with:
|
2020-06-15 14:33:11 +03:00
|
|
|
token: '${{ secrets.PR_LABELER_TOKEN }}'
|
2020-05-13 12:14:09 +03:00
|
|
|
label: 'type: security'
|