From e8ac308461665f5e47ff45d61e4028f0ce99d934 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 4 Sep 2026 04:38:49 +0700 Subject: 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. --- .github/workflows/claude-code-review.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index a9b026bfd..bc22c6f43 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -11,6 +11,10 @@ on: # 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 @@ jobs: # --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 @@ jobs: 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 -- cgit v1.3.1