add claude code workflow - #19
Conversation
WalkthroughAdds two Claude-based GitHub Actions workflows (one auto-runs on pull_request, one on "@claude" mentions) and removes an existing Gemini-based PR review workflow file. (49 words) Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant GitHub as GitHub Events
participant WF_PR as claude-code-review.yml
participant WF_M as claude.yml
participant Claude as anthropics/claude-code-action
participant GHCLI as gh (allowed)
participant PR as Pull Request / Thread
rect rgb(240,248,255)
note over GitHub,WF_PR: PR opened / updated triggers auto-review
GitHub->>WF_PR: pull_request event
WF_PR->>Claude: start job with review prompt + claude_args
Claude->>GHCLI: run allowed `gh` subcommands
GHCLI->>PR: post review comments
end
rect rgb(245,255,245)
note over GitHub,WF_M: Comment/review/issue contains "@claude"
GitHub->>WF_M: issue_comment / review / issues event
WF_M->>WF_M: evaluate "@claude" condition
WF_M->>Claude: run with forwarded body & repo context
Claude->>PR: reply in thread or post comment
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
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 is a problem with the Gemini CLI PR review. Please check the action logs for details. |
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/claude-code-review.yml(1 hunks).github/workflows/claude.yml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: flake-check
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/claude-code-review.yml(1 hunks).github/workflows/claude.yml(1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/claude-code-review.yml
[warning] 51-51: too many blank lines (1 > 0)
(empty-lines)
.github/workflows/claude.yml
[warning] 65-65: too many blank lines (1 > 0)
(empty-lines)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: lint
🤖 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