From d4e6013d38c4479e21557e5c670d43bd1637f4ba Mon Sep 17 00:00:00 2001 From: s3krit Date: Sat, 20 Jun 2020 10:40:48 +0200 Subject: [PATCH] [CI] Don't autolabel insubstantial PRs 'pleasereview' (#1293) * Don't label insubstantial PRs 'pleasereview' * Update auto-label-prs.yml * Update auto-label-prs.yml --- polkadot/.github/workflows/auto-label-prs.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/polkadot/.github/workflows/auto-label-prs.yml b/polkadot/.github/workflows/auto-label-prs.yml index cfa4f302fe..f0b8e9b343 100644 --- a/polkadot/.github/workflows/auto-label-prs.yml +++ b/polkadot/.github/workflows/auto-label-prs.yml @@ -1,4 +1,4 @@ -name: Label new PRs +name: Label PRs on: pull_request: types: [opened,ready_for_review] @@ -7,14 +7,15 @@ jobs: label-new-prs: runs-on: ubuntu-latest steps: - - name: Label new drafts + - name: Label drafts uses: andymckay/labeler@master if: github.event.pull_request.draft == true with: add-labels: 'A3-inprogress' - - name: Label new PRs + remove-labels: 'A0-pleasereview' + - name: Label PRs uses: andymckay/labeler@master - if: github.event.pull_request.draft == false + if: github.event.pull_request.draft == false && ! contains(github.event.pull_request.labels.*.name, 'A2-insubstantial') with: add-labels: 'A0-pleasereview' remove-labels: 'A3-inprogress'