Skip to content

ci: a pull request needs one approval, and the second reader is a GitHub App - #1528

Merged
DrunkOnJava merged 3 commits into
mainfrom
ci/require-one-approval
Nov 8, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
ci/require-one-approval

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

main requires one approval. Until now it required none, so a pull request could merge on CI alone, and #1521 landed before its second read had finished, with a figure that read found overstated.

The maintainer account opens most changes and GitHub refuses an account's approval of its own pull request, so the second reader is a GitHub App, rvt-rs-review (an automated Claude Code reviewer). It approves the maintainer's pull requests, and the maintainer approves a contributor's and the App's. docs/maintaining.md records this, that the approval comes last because a push dismisses it, and that main is measured every three landings.

The live ruleset is updated by hand after this lands, from this file (gh api -X PUT repos/DrunkOnJava/rvt-rs/rulesets/15270879 --input .github/rulesets/main-protection.json), as the file and the live ruleset must match (tools/maintainer/audit.py).

Testing

  • The ruleset file parses, and only required_approving_review_count changes (0 to 1). dismiss_stale_reviews_on_push stays true.
  • The App is installed on this repository alone and its token works. Its first formal approval is the check that it can approve.
  • Not exercised before this lands: the rule itself, which only takes effect when the live ruleset is updated afterwards.

Refs #1521

@DrunkOnJava DrunkOnJava changed the title ci: a pull request needs one approval, and the second reader is a GitHub App (#1457) ci: a pull request needs one approval, and the second reader is a GitHub App Nov 8, 2026
@DrunkOnJava
DrunkOnJava merged commit 60cb1a8 into main Nov 8, 2026
39 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/require-one-approval branch November 8, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant