Skip to content

Commit aae264c

Browse files
authored
Only run suggest-reviewers on PR open, not on every push (#4791)
## Why The `suggest-reviewers` action was re-triggering on every push to an open PR because the `synchronize` event type was included. This caused unnecessary re-runs after the PR was already reviewed/approved. ## Changes Remove the `synchronize` trigger type from the workflow. The action now only runs on `opened` and `ready_for_review` events, so it fires once when a PR is created (or when a draft is marked ready) and never re-runs on subsequent pushes. ## Test plan - Verified the workflow YAML is valid. - The existing `if: !github.event.pull_request.draft` guard still correctly skips draft PRs.
1 parent a2e290d commit aae264c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/suggest-reviewers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: suggest-reviewers
22

33
on:
44
pull_request:
5-
types: [opened, synchronize, ready_for_review]
5+
types: [opened, ready_for_review]
66

77
permissions:
88
contents: read

0 commit comments

Comments
 (0)