You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mirror non-opened pull_request branch into prompt-build IS_RERUN
R1 review on PR #418 caught the sibling-surface gap: the post-comment
step's JS `isRerun` was updated to treat synchronize/reopened as reruns,
but the prompt-build step's YAML `IS_RERUN` env was not. Effect: on
synchronize/reopened, a new comment was posted (correct) but the prompt
omitted the <previous-ai-review-output> block and re-review framing
(incorrect), so the model could not focus on whether prior findings were
addressed.
Fix mirrors the JS predicate into the YAML predicate:
IS_RERUN: ${{ github.event_name == 'issue_comment'
|| github.event_name == 'pull_request_review_comment'
|| (github.event_name == 'pull_request'
&& github.event.action != 'opened') }}
Also expands TestWorkflowCommentPosting to pin BOTH gates and the parity
between them, so future edits to one cannot silently diverge from the
other. New tests:
- test_yaml_isrerun_includes_non_opened_pull_request
- test_yaml_isrerun_still_includes_comment_events
- test_both_gates_enumerate_same_triggers
175 tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments