From d25cd38de1fb14171781b8c4da4403d34961a743 Mon Sep 17 00:00:00 2001 From: helto4real Date: Fri, 23 Apr 2021 19:20:29 +0200 Subject: [PATCH 1/2] add check pr label --- .github/workflows/check_pr_label.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/check_pr_label.yml diff --git a/.github/workflows/check_pr_label.yml b/.github/workflows/check_pr_label.yml new file mode 100644 index 000000000..d57d14aea --- /dev/null +++ b/.github/workflows/check_pr_label.yml @@ -0,0 +1,15 @@ +name: 🏷️ Check labels +on: + pull_request_target: + types: [opened, labeled, unlabeled, synchronize] +jobs: + check_labels: + name: 🏷️ Check valid labels + runs-on: ubuntu-latest + steps: + - name: Check valid labels + uses: jesusvasquez333/verify-pr-label-action@v1.4.0 + with: + github-token: '${{ secrets.GITHUB_TOKEN }}' + valid-labels: 'pr:bugfix, pr: enhancement, pr: dependency-update, pr: new feature' + pull-request-number: '${{ github.event.pull_request.number }}' From a60c1d9c9dd02a140d9d14557fbc8bfab1c30c3e Mon Sep 17 00:00:00 2001 From: helto4real Date: Sat, 24 Apr 2021 13:26:50 +0200 Subject: [PATCH 2/2] fixes after review --- .github/workflows/check_pr_label.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check_pr_label.yml b/.github/workflows/check_pr_label.yml index d57d14aea..d3ef4a938 100644 --- a/.github/workflows/check_pr_label.yml +++ b/.github/workflows/check_pr_label.yml @@ -1,7 +1,7 @@ name: 🏷️ Check labels on: - pull_request_target: - types: [opened, labeled, unlabeled, synchronize] + pull_request: + types: [opened, labeled, unlabeled, synchronize, reopened] jobs: check_labels: name: 🏷️ Check valid labels @@ -10,6 +10,7 @@ jobs: - name: Check valid labels uses: jesusvasquez333/verify-pr-label-action@v1.4.0 with: - github-token: '${{ secrets.GITHUB_TOKEN }}' - valid-labels: 'pr:bugfix, pr: enhancement, pr: dependency-update, pr: new feature' - pull-request-number: '${{ github.event.pull_request.number }}' + github-token: ${{ secrets.GITHUB_TOKEN }} + valid-labels: 'pr:bugfix', 'pr: enhancement', 'pr: dependency-update', 'pr: new feature' + pull-request-number: ${{ github.event.pull_request.number }} + disable-reviews: true