From b0b43f8eeda8e03edc57b9032d2efb5616e7ec1e Mon Sep 17 00:00:00 2001 From: s3krit Date: Tue, 16 Jun 2020 10:32:41 +0200 Subject: [PATCH] [CI] Auto-label new PRs depending on status (#1267) * Add auto-labelling github action * Update auto-label-prs.yml * Update auto-label-prs.yml * Update auto-label-prs.yml --- polkadot/.github/workflows/auto-label-prs.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 polkadot/.github/workflows/auto-label-prs.yml diff --git a/polkadot/.github/workflows/auto-label-prs.yml b/polkadot/.github/workflows/auto-label-prs.yml new file mode 100644 index 0000000000..4446eab4b4 --- /dev/null +++ b/polkadot/.github/workflows/auto-label-prs.yml @@ -0,0 +1,19 @@ +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'