Conversation
Replace the inline review config with a call to the shared reusable workflow in shakacode/.github. This removes the hardcoded model so reviews use Claude Code's default. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
WalkthroughThe CLAUDE code review workflow has been refactored to delegate responsibility to a reusable external workflow maintained in shakacode/.github instead of managing the configuration inline. This change reduces workflow complexity by 46 lines while maintaining functionality. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR centralizes the Claude Code Review GitHub Actions workflow by replacing the repository-local, inline workflow definition with a call to the shared reusable workflow in shakacode/.github, aiming to make future model/config updates happen in one place.
Changes:
- Replaced the inline
anthropics/claude-code-actionjob with a reusable workflow call. - Removed the hardcoded Claude model argument, relying on the shared workflow/default model configuration.
- Passed
CLAUDE_CODE_OAUTH_TOKENinto the reusable workflow viasecrets.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # or https://docs.claude.com/en/docs/claude-code/sdk#command-line for available options | ||
| claude_args: '--model claude-sonnet-4-5-20250929 --allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"' | ||
|
|
||
| uses: shakacode/.github/.github/workflows/claude-code-review.yml@main |
There was a problem hiding this comment.
Using shakacode/.github/...@main means this repo’s workflow behavior can change without any change in this repository (and can be impacted by a compromise of that branch). Prefer pinning to a tag or commit SHA for supply-chain safety and reproducibility, updating intentionally when you want changes.
| uses: shakacode/.github/.github/workflows/claude-code-review.yml@main | |
| uses: shakacode/.github/.github/workflows/claude-code-review.yml@4f3c2b1a0d9e8f7c6b5a49382716e5d4c3b2a1f |
| # - "src/**/*.jsx" | ||
|
|
||
| jobs: | ||
| claude-review: |
There was a problem hiding this comment.
The reusable workflow will run with the caller workflow’s GITHUB_TOKEN permissions. This workflow no longer sets explicit permissions (the previous inline job did), so the called workflow may not be able to request an OIDC token (id-token: write) or post PR comments (pull-requests: write) depending on repo defaults. Recommend adding an explicit permissions: block (either at workflow top-level or under this job) matching what the reusable workflow needs (see .github/workflows/claude.yml for the permissions previously required).
| claude-review: | |
| claude-review: | |
| permissions: | |
| id-token: write | |
| pull-requests: write |
Summary
shakacode/.github--model claude-sonnet-4-5-20250929— uses Claude Code's default model (currently Opus 4.6)Dependencies
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit