Skip to content

CI: review a PR once; a re-review only when the claude:pr label is re-added - #172

Merged
michel2323 merged 1 commit into
mainfrom
ci/review-once
Oct 30, 2026
Merged

michel2323 merged 1 commit into
mainfrom
ci/review-once

Conversation

@michel2323

Copy link
Copy Markdown
Member

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 a synchronize (push), reopened, or a labeled event for a label other than claude:pr, it counts the reviewer's VERDICT: lines on the PR (reviews and issue comments by claude[bot], the same query as pr-verdict.sh) and skips the review and the verdict step when there is one. opened, ready_for_review and a labeled event for claude:pr always review, so a re-review is asked for explicitly by removing and re-adding the claude:pr label. 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: synchronize on #171 (has a verdict) → skip; synchronize on a nonexistent PR → review (fail-open); labeled testing on #171 → skip; labeled claude:pr on #171 → review; opened → review. No Julia code touched; CI legs are unaffected. This PR itself gets no review: claude-code-action refuses to run while the PR's workflow file differs from main.

Deviations from PLAN.md / TASKS.md: none.

Follow-up issues opened: none.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MsLzHmUtWpQYEoF8pxgywZ

…-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
@michel2323 michel2323 added chore CI, tooling or bench upkeep; no package behaviour change ci GitHub Actions / ALCF GitLab configuration labels Oct 30, 2026
@michel2323
michel2323 merged commit 34d663c into main Oct 30, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore CI, tooling or bench upkeep; no package behaviour change ci GitHub Actions / ALCF GitLab configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant