MAINTENANCE: Revert workflow_run trigger for AI review#472
Merged
Conversation
Reverts the workflow_run migration: under workflow_run the ai-review job status attaches to the default branch, not the PR head SHA, so the visible ai-review check disappears from the PR and runs proliferate across every PR-gate completion repo-wide. The verdict still posts as a review, but the on-PR check is lost. Restore the pull_request trigger; the preflight timeout is mitigated by the consuming repo's own CI wall-clock reduction. A cleaner redo (code-review as a project-level PR-gate job ordered via needs) is tracked separately. This reverts commit 504b161.
symbiot-bot
self-requested a review
July 22, 2026 20:26
symbiot-bot
approved these changes
Jul 22, 2026
symbiot-bot
left a comment
Collaborator
There was a problem hiding this comment.
Thanks @awinogradov!
Review run summary 🤖
| Metric | Value |
|---|---|
| Mode | review |
| Model | claude-sonnet-5 |
| Model time | 64.9s |
| Tool round-trips | 13 |
| Assistant turns | 14 |
| Tokens in / out | 699202 / 3883 |
| Cache read / write | 617104 / 82081 |
| Cost (USD) | $0.55 |
symbiot-bot
added a commit
that referenced
this pull request
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #471 (the
on: workflow_runmigration of AI code review).Why revert: under
workflow_run, a job's status attaches to the default-branch commit, not the PR head SHA — so the visibleai-reviewcheck disappears from the PR and it can't be a required status check without extra Checks-API work.workflow_runalso fires on every completion of the gate workflow repo-wide (every PR, every push-to-main, every schedule), spinning up many review runs that mostly skip. The review verdict itself still posts (as apulls.createReview), so nothing was strictly broken, but losing the on-PR check and the run proliferation are regressions.Restoring the
pull_requesttrigger brings back the visibleai-reviewcheck. The original motivation for #471 — the preflight poll racing a repo's CI wall clock and flapping red on a 600s timeout — is better addressed by the consuming repo reducing its gate wall clock (already done downstream), sopull_request+ preflight comfortably fits the budget again.This also reverts the sender-skip scoping from #471 (a bot chore commit could suppress review). A cleaner redo — running code-review as a project-level PR-gate job ordered via
needs:(review after CI, as a normalpull_request-context check, no polling and noworkflow_runproliferation) — is tracked separately and will restore that fix properly.Exactly restores the pre-#471
code-review.ymlandaction.yml(verified: empty diff vs the commit before #471).