Skip to content

Commit 712e50a

Browse files
igerberclaude
andcommitted
Re-review on push: expand pull_request trigger to opened+reopened+synchronize
The reverted Codex workflow originally fired only on `pull_request: opened`, forcing re-reviews to go through the `/ai-review` issue_comment path. That path breaks during workflow-revert PRs like this one: issue_comment events use the default branch's workflow YAML, so until the PR merges, re-trigger comments hit the old broken workflow. Adding `reopened` and `synchronize` lets a normal `git push` (or close+reopen) fire the workflow against the PR's own YAML, so the PR self-validates on each update without the comment-trigger detour. Side benefit beyond this PR: every future PR auto-rereviews on push instead of requiring a manual `/ai-review` comment per round. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1773c93 commit 712e50a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ai_pr_review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: AI PR Review (Codex)
22

33
on:
44
pull_request:
5-
types: [opened]
5+
types: [opened, reopened, synchronize]
66
issue_comment:
77
types: [created]
88
pull_request_review_comment:

0 commit comments

Comments
 (0)