Skip to content

Reviewer: review every pull request, a per-repo trigger - #898

Merged
coderhelm[bot] merged 2 commits into
mainfrom
review-every-pr
Nov 30, 2026
Merged

coderhelm[bot] merged 2 commits into
mainfrom
review-every-pr

Conversation

@nambok

@nambok nambok commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A per-repo setting so the reviewer can review every pull request, with no label needed. Each repo's review config gets trigger next to label: label (the default, so every existing repo reviews exactly what it did) or every_pr. The dashboard control is in CoderHelm/coderhelm#502.

Changes

  • common::review_config: Trigger (label | every_pr, unknown values read as label), saved and shown with the rest of the config, and the pure asks_review decision.
  • Gateway webhook: handle_review_trigger asks pr_event_asks_review. With every_pr, a pull request opened, reopened, marked ready for review or pushed to is reviewed, labelled or not. Everything after that is the labelled path unchanged: the draft gate, the per-head claim, the token limit and the one send_review_job. The label still works as a manual ask.
  • Drafts: held until ready, as the label flow does (@coderhelm review still works on a draft for an early look).
  • CoderHelm's own pull requests: unchanged, reviewed through the label its PR maker adds at creation, so every_pr never reviews them twice.
  • Bots such as dependency updaters: reviewed like a person's pull request, since they change the code.
  • An edited description re-reviews the same pull requests a push does (description_review), and the merge gate's status comment covers pull requests every_pr opted in (await_merge).
  • Incident case wk_every_pr_reviewed (test and page).

Verification

  • cargo fmt --all --check, rustfmt --check --edition 2021 worker/src/passes/incidents/*.rs: clean.
  • cargo clippy -p common -p worker -p gateway --all-targets -- -D warnings: clean.
  • cargo test -p common -p worker -p gateway: all pass, including the new gateway webhook tests (opened, reopened, ready_for_review, synchronize, draft, CoderHelm's own pull request, a dependency bot, the label as a manual ask), the config round trip, and the incident case.

coderhelm[bot]

This comment was marked as outdated.

@coderhelm

coderhelm Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

💚 Post-merge health check passed: the deploy of 8c860a6 completed and stayed green for the full 15-minute watch window (no new failures vs. the pre-merge baseline).
Auto-merge

  • ✅ CoderHelm approved
  • ✅ CI green
    The rest is in the pull request description.

coderhelm[bot]

This comment was marked as outdated.

coderhelm[bot]

This comment was marked as outdated.

Each repo's review config gets `trigger` next to `label`: "label" (the
default, so existing repos review exactly what they did) or "every_pr".
With every_pr, a person's or a bot's pull request opened, reopened,
marked ready for review or pushed to is reviewed with no label, through
the same path a labelled one takes: drafts wait for ready, one review per
head, the token limit, the stale-commit checks. The label still asks by
hand. CoderHelm's own pull requests follow the label its PR maker adds,
so they are never reviewed twice. An edited description re-reviews the
same pull requests a push does, and the merge gate's status comment
covers pull requests every_pr opted in.

Incident case wk_every_pr_reviewed.
coderhelm[bot]

This comment was marked as outdated.

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved with notes 1dce640 (merged)

@coderhelm
coderhelm Bot merged commit 8c860a6 into main Nov 30, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant