Repository navigation
ci: add a bot referee and a capped weekly Claude helper - #279
Merged
Merged
Conversation
The referee posts one verdict comment when two or more review bots spoke and one asked for a change. The weekly helper opens at most one small pull request a week, skipping files open pull requests touch. Assisted-by: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0175Q8iC87zJKTWdHHkXtqsk
|
Caution Review failedThe pull request is closed. Walkthrough
|
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by CH · project thread
What was wrong, what you changed, how you checked:
Two hands-off helpers, each in its own lane next to what already runs (CodeRabbit reviews, Bite checks test guards, CodeQL checks security,
@claudeanswers when asked):.github/workflows/bot-referee.yml+.github/scripts/referee_gather.py). When two or more review bots have spoken on a PR and at least one asked for a change, Claude reads all of it plus the diff and posts one verdict comment: agree, or disagree and which call to make and why. Later rounds edit that same comment. A free Python gate decides first, so with one bot, no asks, or nothing new since the last verdict, Claude never starts. It waits 5 minutes for the bots to finish, runs the default branch's scripts (never the PR's), and Claude can only read files and write the verdict (no shell). Cap: Sonnet, 6 turns, $0.40..github/workflows/weekly-helper.yml). Mondays, Claude opens at most one small PR (labelweekly-helper, assigned to connabyss). It skips the week while last week's PR is still open, stays away from every file an open PR touches, follows AGENTS.md, and opens nothing if it finds nothing worth it. Cap: Sonnet, 40 turns, $1.50, 30 minutes.Both use the existing
ANTHROPIC_API_KEYsecret and turn themselves off if it's missing.tests/test_helper_workflows.pypins the caps and the anti-spam gates. actionlint is clean.python -m pytestpasses (474 passed, 1 skipped locally).Plain 3-line lesson:
concurrencywithcancel-in-progressturns a burst of bot comments into one run instead of five.Assisted-by: Claude Code
Generated by Claude Code
Summary by CodeRabbit