Repository navigation
Add Claude Code GitHub Workflow - #20
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughAdded two new GitHub Actions workflows for Claude code review triggers and aligned checkout step labels in existing CI/release workflows; workflows invoke the anthropics/claude-code-action with required secrets and permissions and include mention-based and PR-event activation logic. Changes
Sequence Diagram(s)sequenceDiagram
participant GitHub as GitHub Events
participant Runner as Actions Runner
participant Checkout as Checkout Step
participant ClaudeAction as Claude Action (anthropics/claude-code-action)
participant ClaudeAPI as Claude Service
GitHub->>Runner: push / PR / comment event
Runner->>Checkout: checkout repository
Runner->>ClaudeAction: run Claude Action (with CLAUDE_CODE_OAUTH_TOKEN, plugins, prompt)
ClaudeAction->>ClaudeAPI: send repo+PR payload and prompt
ClaudeAPI-->>ClaudeAction: analysis / review output
ClaudeAction-->>Runner: post comments / PR updates (using permissions)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/claude-code-review.yml:
- Around line 10-14: The workflow currently grants only pull-requests: read
which prevents the action from posting review comments; update the permissions
block in the workflow to change pull-requests from read to write so Claude Code
Review can post comments (i.e., replace or modify the existing pull-requests:
read entry to pull-requests: write in the permissions section).
In @.github/workflows/claude.yml:
- Around line 21-26: Update the GitHub Actions workflow permissions to grant
write access for pull-requests and issues so Claude can post comments and
interact with PRs; specifically change the permissions entries for
"pull-requests" and "issues" from read to write in the permissions block (leave
other permissions like "contents", "id-token", and "actions" as-is).
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 9b7f4a11-41ba-4a32-9216-545b2b1e3363
📒 Files selected for processing (4)
.github/workflows/ci.yml.github/workflows/claude-code-review.yml.github/workflows/claude.yml.github/workflows/release.yml
Co-Authored-By: Claude Opus 4.6 <[email protected]>
🤖 Installing Claude Code GitHub App
This PR adds a GitHub Actions workflow that enables Claude Code integration in our repository.
What is Claude Code?
Claude Code is an AI coding agent that can help with:
How it works
Once this PR is merged, we'll be able to interact with Claude by mentioning @claude in a pull request or issue comment.
Once the workflow is triggered, Claude will analyze the comment and surrounding context, and execute on the request in a GitHub action.
Important Notes
Security
There's more information in the Claude Code action repo.
After merging this PR, let's try mentioning @claude in a comment on any PR to get started!
Summary by CodeRabbit
New Features
Chores