Skip to content

Commit a32c7b8

Browse files
ovitrifclaude
andcommitted
fix: repair Claude code review workflow and disable rustfmt cron
The code-review CLI plugin silently fails in CI, burning tokens without posting comments (anthropics/claude-code#26227). Replace with a direct prompt that uses gh pr comment and inline comments. Remove the weekly cron schedule from rustfmt workflow to prevent automated PRs; keep workflow_dispatch for manual use. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3f4c563 commit a32c7b8

2 files changed

Lines changed: 24 additions & 8 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# WARNING: Do not let /install-github-app overwrite this file.
2+
# The auto-generated version uses the code-review CLI plugin which
3+
# silently fails in CI (see https://github.com/anthropics/claude-code/issues/26227).
4+
# This version uses a direct prompt per the official docs.
15
name: Claude Code Review
26

37
on:
@@ -51,8 +55,22 @@ jobs:
5155
uses: anthropics/claude-code-action@v1
5256
with:
5357
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
54-
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
55-
plugins: 'code-review@claude-code-plugins'
56-
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
57-
allowed_bots: 'claude[bot]'
58-
claude_args: '--allowed-tools Bash(gh:*) WebFetch'
58+
track_progress: true
59+
prompt: |
60+
REPO: ${{ github.repository }}
61+
PR NUMBER: ${{ github.event.pull_request.number }}
62+
63+
Please review this pull request with a focus on:
64+
- Code quality and Rust best practices
65+
- Potential bugs, logic errors, or unsafe patterns
66+
- Security implications (especially around cryptographic operations and Lightning/Bitcoin handling)
67+
- Performance considerations
68+
69+
Note: The PR branch is already checked out in the current working directory.
70+
71+
Use `gh pr comment` for top-level feedback.
72+
Use `mcp__github_inline_comment__create_inline_comment` to highlight specific code issues.
73+
Only post GitHub comments - don't submit review text as messages.
74+
claude_args: >-
75+
--allowedTools
76+
"mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"

.github/workflows/cron-weekly-rustfmt.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ permissions:
55
pull-requests: write
66

77
on:
8-
schedule:
9-
- cron: "0 0 * * 0" # runs weekly on Sunday at 00:00
10-
workflow_dispatch: # allows manual triggering
8+
workflow_dispatch: # manual only — cron schedule removed to avoid automated PRs
119
jobs:
1210
format:
1311
name: Nightly rustfmt

0 commit comments

Comments
 (0)