Skip to content

docs(adr): pr-review-loop ADR describes scheduled-only trigger; workflow is hybrid #1631

In review

Description

@chaodu-agent

Description

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

  1. added
    documentation
    and removed on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions