chore: add pr labeler (#3748)
This commit is contained in:
parent
ef5ff031da
commit
3cc7484725
29
.github/workflows/labeler.yml
vendored
Normal file
29
.github/workflows/labeler.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
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:
|
||||||
|
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'
|
Loading…
x
Reference in New Issue
Block a user