From be98a13b9d7c698a64fe1ffe7035dfcdeb992b76 Mon Sep 17 00:00:00 2001 From: blam Date: Wed, 15 Dec 2021 14:36:09 +0100 Subject: [PATCH] chore: updating goalie review worklfows Signed-off-by: blam --- ...l => goalie-on-pr-review-or-response.yaml} | 24 ++----------------- .../workflows/goalie-set-pending-review.yaml | 22 +++++++++++++++++ 2 files changed, 24 insertions(+), 22 deletions(-) rename .github/workflows/{goalie.yaml => goalie-on-pr-review-or-response.yaml} (79%) create mode 100644 .github/workflows/goalie-set-pending-review.yaml diff --git a/.github/workflows/goalie.yaml b/.github/workflows/goalie-on-pr-review-or-response.yaml similarity index 79% rename from .github/workflows/goalie.yaml rename to .github/workflows/goalie-on-pr-review-or-response.yaml index ecb1ade0e4..0a4f65d05c 100644 --- a/.github/workflows/goalie.yaml +++ b/.github/workflows/goalie-on-pr-review-or-response.yaml @@ -1,28 +1,10 @@ -# when a PR is opened, let's add the pending-review label -name: Set pending review label -on: - pull_request: - types: [opened, reopened] - -jobs: - label: - runs-on: ubuntu-latest - steps: - - uses: actions/github-script@v5 - with: - script: | - github.rest.issues.addLabels({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['awaiting-review'] - }) ---- # on a review from someone in the reviewers group, remove the awaiting-review label and add the awaiting-author label name: Update labels for awaiting review on: pull_request_review: types: [submitted] + pull_request_review_comment: + types: [created] jobs: label: @@ -72,5 +54,3 @@ jobs: labels: ['awaiting-author'] }); } - - diff --git a/.github/workflows/goalie-set-pending-review.yaml b/.github/workflows/goalie-set-pending-review.yaml new file mode 100644 index 0000000000..785c37a3ee --- /dev/null +++ b/.github/workflows/goalie-set-pending-review.yaml @@ -0,0 +1,22 @@ +# when a PR is opened, let's add the pending-review label +name: Set pending review label +on: + pull_request: + types: [opened, reopened] + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v5 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['awaiting-review'] + }) + + +