Skip to content

Commit d68d654

Browse files
authored
Merge pull request #16 from shakacode/codex/fix-claude-code-review-tools-20260219
Fix Claude Code Review workflow comment tooling
2 parents bf8899c + f10d146 commit d68d654

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,19 @@ name: Claude Code Review
33
on:
44
pull_request:
55
types: [opened, synchronize, ready_for_review, reopened]
6-
# Optional: Only run on specific file changes
7-
# paths:
8-
# - "src/**/*.ts"
9-
# - "src/**/*.tsx"
10-
# - "src/**/*.js"
11-
# - "src/**/*.jsx"
126

137
jobs:
148
claude-review:
15-
# Optional: Filter by PR author
16-
# if: |
17-
# github.event.pull_request.user.login == 'external-contributor' ||
18-
# github.event.pull_request.user.login == 'new-developer' ||
19-
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
20-
219
runs-on: ubuntu-latest
2210
permissions:
2311
contents: read
24-
pull-requests: read
25-
issues: read
12+
pull-requests: write
13+
issues: write
2614
id-token: write
2715

2816
steps:
2917
- name: Checkout repository
30-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
3119
with:
3220
fetch-depth: 1
3321

@@ -36,9 +24,21 @@ jobs:
3624
uses: anthropics/claude-code-action@v1
3725
with:
3826
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
39-
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
40-
plugins: 'code-review@claude-code-plugins'
41-
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
42-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
43-
# or https://code.claude.com/docs/en/cli-reference for available options
27+
prompt: |
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.
4442
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)