Skip to content

Commit 3b2c6e2

Browse files
authored
Fix Claude Code Review workflow comment tooling (#928)
This ports the Claude Code review workflow fix from [shakacode/hichee-data#367](shakacode/hichee-data#367): - update prompt instructions so Claude posts feedback via GitHub comments - allow required tools via `claude_args --allowedTools` - remove sticky-comment mode This makes Claude review output appear as top-level and inline PR comments.
1 parent 12b31f7 commit 3b2c6e2

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ jobs:
2424
uses: anthropics/claude-code-action@v1
2525
with:
2626
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
27-
use_sticky_comment: true
2827
prompt: |
29-
Review this PR for correctness, security issues, and potential improvements.
28+
REPO: ${{ github.repository }}
29+
PR NUMBER: ${{ github.event.pull_request.number }}
30+
31+
Please review this pull request with a focus on:
32+
- Code quality and best practices
33+
- Potential bugs or issues
34+
- Security implications
35+
- Performance considerations
36+
37+
Note: The PR branch is already checked out in the current working directory.
38+
39+
Use `gh pr comment` for top-level feedback.
40+
Use `mcp__github_inline_comment__create_inline_comment` to highlight specific code issues.
41+
Only post GitHub comments - don't submit review text as messages.
42+
43+
claude_args: |
44+
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"

0 commit comments

Comments
 (0)