From 6db7110ed6035d33e01197a3cd59e6462e1a3198 Mon Sep 17 00:00:00 2001 From: Martin Pugh Date: Mon, 15 Jun 2020 18:54:10 +0200 Subject: [PATCH 1/2] add auto-label github action --- .github/workflows/auto-label-prs.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/auto-label-prs.yml diff --git a/.github/workflows/auto-label-prs.yml b/.github/workflows/auto-label-prs.yml new file mode 100644 index 0000000000000..4446eab4b438e --- /dev/null +++ b/.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' From dcd9e41844d84a1caebfac4c674fbcd3e2db1ea3 Mon Sep 17 00:00:00 2001 From: s3krit Date: Tue, 16 Jun 2020 12:46:14 +0200 Subject: [PATCH 2/2] Add missing 'remove-labels' line --- .github/workflows/auto-label-prs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/auto-label-prs.yml b/.github/workflows/auto-label-prs.yml index 4446eab4b438e..cfa4f302fe049 100644 --- a/.github/workflows/auto-label-prs.yml +++ b/.github/workflows/auto-label-prs.yml @@ -17,3 +17,4 @@ jobs: if: github.event.pull_request.draft == false with: add-labels: 'A0-pleasereview' + remove-labels: 'A3-inprogress'