From 5fcadc40cf0051189b762edfdbda78fcc503b071 Mon Sep 17 00:00:00 2001 From: musingfox Date: Sat, 10 Oct 2026 23:29:13 +0800 Subject: [PATCH 1/2] ci(review): print the review's full output to find the denied tools Throwaway test PR: server/review-canary.ts plants a bug for the review to find. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/claude-code-review.yml | 1 + server/review-canary.ts | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 server/review-canary.ts diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index c797e64..321fabc 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -39,6 +39,7 @@ jobs: plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' plugins: 'code-review@claude-code-plugins' prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }} --comment' + show_full_output: true # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://code.claude.com/docs/en/cli-reference for available options diff --git a/server/review-canary.ts b/server/review-canary.ts new file mode 100644 index 0000000..5c860f6 --- /dev/null +++ b/server/review-canary.ts @@ -0,0 +1,4 @@ +/** True while `count` has not exceeded `limit`. */ +export function isWithinLimit(count: number, limit: number): boolean { + return count > limit; +} From 0d343660c01cf6311e49052d55d440b1c2bec156 Mon Sep 17 00:00:00 2001 From: musingfox Date: Sat, 10 Oct 2026 23:30:37 +0800 Subject: [PATCH 2/2] ci(review): keep the workflow identical to main so the action runs claude-code-action skips a PR whose workflow file differs from the default branch. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/claude-code-review.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 321fabc..c797e64 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -39,7 +39,6 @@ jobs: plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' plugins: 'code-review@claude-code-plugins' prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }} --comment' - show_full_output: true # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://code.claude.com/docs/en/cli-reference for available options