Skip to content

Commit

Permalink
chore: add pr labeler (#3748)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah committed May 13, 2020
1 parent ef5ff03 commit 3cc7484
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 3cc7484

Please sign in to comment.