From c44947bbcb72df19d2c6c69f43f4ff2b94aeaad0 Mon Sep 17 00:00:00 2001 From: s3krit Date: Tue, 16 Jun 2020 14:12:43 +0200 Subject: [PATCH] [CI] Auto-label new PRs according to draft status (#6361) * add auto-label github action * Add missing 'remove-labels' line --- .../.github/workflows/auto-label-prs.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 substrate/.github/workflows/auto-label-prs.yml diff --git a/substrate/.github/workflows/auto-label-prs.yml b/substrate/.github/workflows/auto-label-prs.yml new file mode 100644 index 0000000000..cfa4f302fe --- /dev/null +++ b/substrate/.github/workflows/auto-label-prs.yml @@ -0,0 +1,20 @@ +name: Label new PRs +on: + pull_request: + types: [opened,ready_for_review] + +jobs: + label-new-prs: + runs-on: ubuntu-latest + steps: + - name: Label new drafts + uses: andymckay/labeler@master + if: github.event.pull_request.draft == true + with: + add-labels: 'A3-inprogress' + - name: Label new PRs + uses: andymckay/labeler@master + if: github.event.pull_request.draft == false + with: + add-labels: 'A0-pleasereview' + remove-labels: 'A3-inprogress'