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
{{ message }}
Repository navigation
docs(adr): pr-review-loop ADR describes scheduled-only trigger; workflow is hybrid #1631
Found during review of #1626. These behaviors exist on main and are not changed by #1626.
1. ADR describes a scheduled-only trigger, but the workflow is hybrid
.github/workflows/pr-bot-review.yml triggers on pull_request (opened/synchronize/reopened), schedule (*/5), workflow_dispatch, and issue_comment (/review). docs/adr/pr-review-loop.md still describes the 2026-06-18 amendment as replacing the event-driven trigger with polling only:
L67-74: "Replace the event-driven trigger with a schedule cron job" (YAML shows only schedule + workflow_dispatch)
L125: architecture diagram shows only cron / manual
L251: "Trigger: schedule (cron) + workflow_dispatch for manual runs"
Claims that follow from the scheduled-only model and do not hold for same-repo PRs:
L98: latency "up to 5 min" (same-repo pushes trigger immediately via pull_request)
L100: Actions minutes "fixed (one run per 5 min)" (pull_request adds per-push runs)
L106: "Eliminates duplicate-review bugs" (L92 now says rounds can overlap)
L226: "Rapid pushes between polls simply update HEAD; only the latest SHA is reviewed on next poll" (each same-repo push runs the poll path)
L241: "at most 1 review runs per push burst"
Proposed fix: update the ADR to describe the actual design (same-repo pull_request trigger + scheduled sweep + workflow_dispatch + maintainer /review) and adjust the latency, cost and dedup text. Alternatively, drop the pull_request trigger if scheduled-only is still intended (behavior change).
2. /review prefix match is loose
The /review gate uses startsWith(comment.body, '/review'), so /reviewanything also matches. The gate is still maintainer-only, so impact is low. Consider matching /review followed by end of string or whitespace.
Related: #1627 (concurrency groups and per-SHA gating).
Activity