From 1ecc3ab014421d79f0f3b1bccd7bd66992c1a38e Mon Sep 17 00:00:00 2001 From: "Martine S. Lenders" Date: Tue, 25 Aug 2020 20:09:44 +0200 Subject: [PATCH] gh-actions: initial import of a label-checker workflow This adds a label checker that checks if certain labels are set, not set or if some are set, enough reviews were provided. --- .github/workflows/check-labels.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/check-labels.yml diff --git a/.github/workflows/check-labels.yml b/.github/workflows/check-labels.yml new file mode 100644 index 0000000000..483a8a9d20 --- /dev/null +++ b/.github/workflows/check-labels.yml @@ -0,0 +1,15 @@ +name: check-labels +on: + pull_request: + types: [opened, reopened, labeled, unlabeled] + pull_request_review: + types: [submitted, dismissed] +jobs: + check-labels: + runs-on: ubuntu-latest + steps: + - uses: RIOT-OS/check-labels-action@v1.0.0 + with: + access_token: ${{ secrets.GITHUB_TOKEN }} + unset_labels: 'CI: needs squashing,State: waiting for other PR' + cond_labels: '(Process: needs >1 ACK,review.approvals>1),(Area: RDM,review.approvals>2)'