summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-06-03 18:47:28 +0700
committerhathach <[email protected]>2026-06-03 18:47:28 +0700
commite2100b44d302d71401119de80d8a64a0d066e4ce (patch)
treeff18cca3fb9dc2524a83f9842cbcf69f8092c6e6
parentf19c01216fc5fc0f07789932df1db6fde82f525b (diff)
parentf13d86cf298bf653734666b8c364bd8e6eb9f2e5 (diff)
Merge branch 'master' into ch32_warning
-rw-r--r--.github/workflows/claude-code-review.yml13
1 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml
index 4a0e4639b..91859af9d 100644
--- a/.github/workflows/claude-code-review.yml
+++ b/.github/workflows/claude-code-review.yml
@@ -21,7 +21,7 @@ jobs:
permissions:
contents: read
pull-requests: write
- issues: write # use_sticky_comment posts/updates a PR comment via the issues API
+ issues: write # Claude posts the review comment via the issues API
id-token: write
actions: read # Required for Claude to read CI results on PRs
@@ -36,13 +36,20 @@ jobs:
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
+ # Allow claude[bot]'s own pushes to be handled gracefully (skip) instead
+ # of erroring out the workflow
+ allowed_bots: 'claude'
# Pairs with the actions: read permission so Claude can read CI results
additional_permissions: |
actions: read
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 }}'
- # Reuse one comment instead of posting a new one each push
+ # Post/update a single summary comment every run, so a clean review
+ # ("no issues found") is still visible instead of posting nothing.
use_sticky_comment: true
+ prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
+ # TEMPORARY: expose the full Claude transcript in the Actions log for
+ # debugging. Revert to remove once done.
+ show_full_output: true
claude_args: '--max-turns 20'
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md