Repository navigation
Add Claude Code GitHub Workflow - #3
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds two new GitHub Actions workflows integrating Claude Code: one auto-reviewing pull requests on open/synchronize events, and another responding to comments/issues that mention @claude. Both check out the repo and run anthropics/claude-code-action@v1 with scoped permissions and a secret OAuth token. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Dev as Developer
participant GH as GitHub (PR Events)
participant GA as GitHub Actions Runner
participant Act as Claude Code Action
participant API as GitHub API/CLI
rect rgba(200,230,255,0.3)
note over GH: PR opened / synchronize
GH->>GA: Trigger workflow: "Claude Code Review"
GA->>GA: actions/checkout@v4 (fetch-depth: 1)
GA->>Act: Run anthropics/claude-code-action@v1<br/>with CLAUDE_CODE_OAUTH_TOKEN
Act->>API: gh pr diff/view/list, gh pr comment (scoped)
API-->>Dev: Review comments posted on PR
end
sequenceDiagram
autonumber
participant User as User
participant GH as GitHub (Comments/Issues/Reviews)
participant GA as GitHub Actions Runner
participant Act as Claude Code Action
participant API as GitHub API/CLI
rect rgba(220,255,220,0.3)
note over GH: Comment/Issue/Review mentioning @claude
GH->>GA: Trigger workflow: "Claude Code"
GA->>GA: actions/checkout@v4 (fetch-depth: 1)
GA->>Act: Run anthropics/claude-code-action@v1<br/>with CLAUDE_CODE_OAUTH_TOKEN
Act->>API: Read actions, PR/issue data (scoped)
API-->>User: Bot response via comments
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
✨ Finishing touches🧪 Generate unit tests
Comment |
🤖 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