chore: updating goalie review worklfows

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-12-15 14:36:09 +01:00
parent 3c7a8aee03
commit be98a13b9d
2 changed files with 24 additions and 22 deletions
@@ -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']
});
}
@@ -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']
})