Use centralized Claude Code Review workflow#695
Conversation
Replace inline review config with a call to the shared reusable workflow. Removes hardcoded model so reviews use Claude Code's default (currently Opus 4.6). Co-Authored-By: Claude Opus 4.6 <[email protected]>
WalkthroughThe GitHub Actions workflow for Claude Code Review is refactored to use an external reusable workflow instead of inline steps. The internal implementation including checkout, action invocation, and configuration is removed and replaced with a reference to an external workflow from shakacode/.github, maintaining secret token passage. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 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. 🎉 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 |
Greptile OverviewGreptile SummaryThis PR simplifies the local Claude Code Review workflow by delegating the entire Net effect is that future changes to the review logic are managed centrally, but the review behavior in this repo becomes dependent on the referenced reusable workflow ref and its declared inputs/secrets/permissions. Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant GH as GitHub PR Event
participant Repo as This repo workflow
participant Shared as shakacode/.github reusable workflow
participant Action as anthropics/claude-code-action
participant API as GitHub API
GH->>Repo: pull_request (opened/synchronize)
Repo->>Shared: uses reusable workflow (@ref)
Shared->>Action: run Claude Code Review
Action->>API: fetch PR diff / metadata
Action->>API: post review comment/status
|
| # - "src/**/*.jsx" | ||
|
|
||
| jobs: | ||
| claude-review: |
There was a problem hiding this comment.
Unpinned reusable workflow ref
This calls the reusable workflow at shakacode/.github/...@main, which means behavior can change without a PR in this repo and can break review runs unexpectedly. Pin to an immutable ref (tag or commit SHA) for stability, and bump it intentionally when you want updates.
| uses: shakacode/.github/.github/workflows/claude-code-review.yml@main | ||
| secrets: |
There was a problem hiding this comment.
Secret mapping may not match
secrets: CLAUDE_CODE_OAUTH_TOKEN: ... only works if the called reusable workflow declares on: workflow_call with a secrets: CLAUDE_CODE_OAUTH_TOKEN entry. If the upstream expects a differently named secret or uses secrets: inherit, this workflow will fail at runtime with a validation error; confirm alignment with shakacode/.github and update accordingly.
🚀 Quick Review App CommandsWelcome! Here are the commands you can use in this PR:
|
|
✅ Review app for PR #695 was successfully deleted |
Summary
shakacode/.githubshakacode/.githubDependencies
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit