qodo-gate: accept Qodo's update-in-place re-review as current-head evidence - #358
Conversation
…idence
A /review summon after a push does not submit a new review object — Qodo
edits its code-review comment and posts a marker comment naming the head
sha ('updated up to the latest commit <oid>', observed on #356). The gate
now accepts that marker (bot-authored comments only, exact head oid) as
the second evidence form beside a head-tied review object.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PR Summary by Qodoqodo-gate: accept Qodo “updated up to latest commit” marker as head evidence
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1.
|
… count gh api --paginate applies --jq per page, so '| length' emitted one count per page and broke the integer comparison on multi-page comment lists — emit matching ids and count lines instead. The fallback endpoint also needs issues:read on the workflow token. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
/review |
|
Code review by qodo was updated up to the latest commit 52ee466 |
Follow-up gap found while landing #356: a
/reviewsummon after a push does not submit a new review object — Qodo edits its code-review comment in place and posts a marker comment naming the head sha ("updated up to the latest commit<oid>"). The gate's strict review-object/head-oid match therefore blocks forever on the summon path (observed live on #356; #357's summons happened to produce review objects).The gate now accepts either evidence form:
Only the bot's own comments count, so this is not spoofable by other users. Comment edits can't retrigger the check against the PR head (issue_comment runs attach to the default branch), so the retrigger paths stay: thread reply or Checks-tab re-run — documented in the failure message.
🤖 Generated with Claude Code