From 3cc748472531fb9503ab9b7c0e36d80877c856bc Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Wed, 13 May 2020 12:14:09 +0300 Subject: [PATCH] chore: add pr labeler (#3748) --- .github/workflows/labeler.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..fcfab0a4 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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'