aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/automation_request_review.yml
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2023-12-10 11:06:43 -0800
committerSteven Arcangeli <stevearc@stevearc.com>2023-12-10 11:06:43 -0800
commit454275ee286fffe90841db6f3eac3b56e7a5a60e (patch)
tree2d42009164dc513e046883e5ac8f0092a2186848 /.github/workflows/automation_request_review.yml
parent8df1bed7b8de9cf40476996fb5ab73ed667aed35 (diff)
ci: trying again to fix auto-request review
Diffstat (limited to '.github/workflows/automation_request_review.yml')
-rw-r--r--.github/workflows/automation_request_review.yml20
1 files changed, 10 insertions, 10 deletions
diff --git a/.github/workflows/automation_request_review.yml b/.github/workflows/automation_request_review.yml
index c973470..b912cc0 100644
--- a/.github/workflows/automation_request_review.yml
+++ b/.github/workflows/automation_request_review.yml
@@ -2,8 +2,10 @@ name: Request Review
permissions:
pull-requests: write
on:
- pull_request:
- types: [opened, ready_for_review]
+ pull_request_target:
+ types: [opened, reopened, ready_for_review]
+ branches-ignore:
+ - "release-please--**"
jobs:
# Request review automatically when PRs are opened
@@ -16,11 +18,9 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const pr = context.payload.pull_request;
- if (!pr.draft) {
- github.rest.pulls.requestReviewers({
- owner: context.repo.owner,
- repo: context.repo.repo,
- pull_number: pr.number,
- reviewers: ['stevearc']
- });
- }
+ github.rest.pulls.requestReviewers({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ pull_number: pr.number,
+ reviewers: ['stevearc']
+ });