Repository navigation
CI: review a PR once; a re-review only when the claude:pr label is re-added - #172
Merged
Merged
Conversation
…-added A push to a PR that already has a VERDICT (and a reopen, or a label other than claude:pr) no longer starts a new review: a gate step counts the reviewer's verdicts on the PR and skips the review when there is one. Re-adding the claude:pr label asks for a new review explicitly; opened and ready_for_review review as before. AGENTS.md describes the new rule. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MsLzHmUtWpQYEoF8pxgywZ
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.
Not a task PR: a change to the reviewer workflow, requested by the owner.
What changed
.github/workflows/claude-review.yml: a PR is reviewed once. A new gate step ("Review once unless asked") runs before the Claude step: on asynchronize(push),reopened, or alabeledevent for a label other thanclaude:pr, it counts the reviewer'sVERDICT:lines on the PR (reviews and issue comments byclaude[bot], the same query aspr-verdict.sh) and skips the review and the verdict step when there is one.opened,ready_for_reviewand alabeledevent forclaude:pralways review, so a re-review is asked for explicitly by removing and re-adding theclaude:prlabel. If the API query fails, the gate falls open to reviewing. The header and concurrency comments describe the rule.AGENTS.md, "GitHub workflow": the Reviewer bullet now says a PR is reviewed once and how to ask for another review (replaces "a push to the branch starts a new review").Tests: YAML parsed (4 steps); the gate script extracted and
bash -n-checked, then dry-run against the live API:synchronizeon #171 (has a verdict) → skip;synchronizeon a nonexistent PR → review (fail-open);labeled testingon #171 → skip;labeled claude:pron #171 → review;opened→ review. No Julia code touched; CI legs are unaffected. This PR itself gets no review:claude-code-actionrefuses to run while the PR's workflow file differs frommain.Deviations from PLAN.md / TASKS.md: none.
Follow-up issues opened: none.
🤖 Generated with Claude Code
https://claude.ai/code/session_01MsLzHmUtWpQYEoF8pxgywZ