Add Claude Code GitHub Workflow#1
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughTwo new GitHub Actions workflows are introduced: one automatically runs Claude-based code reviews on pull requests, while the other enables on-demand reviews triggered by "@claude" mentions in comments and reviews. Both workflows invoke the Anthropic Claude code action with OAuth authentication. Changes
Sequence Diagram(s)sequenceDiagram
participant GitHub as GitHub Events
participant Actions as GitHub Actions
participant Claude as Claude Code Action
participant PR as PR/Issue
rect rgb(200, 220, 240)
Note over GitHub,PR: Automated Review Workflow
GitHub->>Actions: PR opened/synchronized
Actions->>Actions: Checkout repository
Actions->>Claude: Invoke with PR context
Claude->>Claude: Analyze code
Claude->>PR: Comment review results via gh CLI
end
rect rgb(240, 220, 200)
Note over GitHub,PR: On-Demand Review Workflow
GitHub->>Actions: Comment/review with "@claude"
Actions->>Actions: Check for `@claude` mention
alt Mention detected
Actions->>Claude: Invoke with optional custom prompt
Claude->>PR: Comment results
else No mention
Actions->>Actions: Skip
end
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. 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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| with: | ||
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} |
There was a problem hiding this comment.
pull_request workflow loses required secret on forks
This workflow consumes secrets.CLAUDE_CODE_OAUTH_TOKEN to run the review action, but it is triggered via pull_request; GitHub never passes repository secrets to workflows started from forked PRs, so external contributions will see missing-token errors and the review job will fail. If you want Claude reviews on forked PRs, switch the trigger to pull_request_target or gate execution to trusted authors.
Useful? React with 👍 / 👎.
🤖 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
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.