ci: one Claude review per PR at a time, at effort high A new push now cancels the stale in-flight review instead of stacking a second run on the same PR. Effort max on every synchronize is the only place the routine review needs the top setting; high is the documented default. Drop the transcript dump that was marked temporary.
diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index a9b026b..bc22c6f 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml
@@ -11,6 +11,10 @@ # those. Same-repo branches (yours or write-access contributors) auto-review. types: [opened, synchronize, reopened, ready_for_review] +concurrency: + group: claude-review-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: claude-review: # Skip drafts, and skip fork PRs (no secrets -> would only fail noisily) @@ -50,9 +54,6 @@ # --comment makes the code-review command post its findings to the PR. # Without it the command only prints the review to the Actions log. prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }} --comment' - # TEMPORARY: expose the full Claude transcript in the Actions log for - # debugging. Revert to remove once done. - show_full_output: true # The headless review was blocked on two tools: compound Bash pipelines # (sed/python/grep) and Write (it dropped a check_headings.py helper to # inspect the diff). Default permission mode gates both; Read/Grep/Glob/ @@ -62,6 +63,6 @@ claude_args: | --max-turns 50 --model claude-opus-4-8 - --effort max + --effort high --allowedTools Bash,Write # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md