-
Notifications
You must be signed in to change notification settings - Fork 0
Add Claude Code GitHub Workflow #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Reviewer's GuideThis PR introduces two new GitHub Actions workflows to integrate the Claude Code AI assistant: one for automated pull-request reviews (triggered on PR events) and one for ad-hoc Claude runs via @claude mentions in comments or issues. Sequence diagram for @claude mention workflowsequenceDiagram
actor User
participant GitHub as GitHub
participant Actions as GitHub Actions Runner
participant Claude as Claude Code Action
participant Anthropic as Anthropic API
User->>GitHub: Comment with @claude on PR/issue
GitHub->>Actions: Trigger claude.yml workflow
Actions->>Claude: Run Claude Code Action
Claude->>Anthropic: Send context and request
Anthropic-->>Claude: Return response
Claude->>GitHub: Post comment/commit/branch
GitHub-->>User: Show Claude's response
Sequence diagram for automated Claude Code Review workflowsequenceDiagram
participant GitHub as GitHub
participant Actions as GitHub Actions Runner
participant Claude as Claude Code Review Action
participant Anthropic as Anthropic API
GitHub->>Actions: PR opened/synchronized
Actions->>Claude: Run Claude Code Review Action
Claude->>Anthropic: Send PR context for review
Anthropic-->>Claude: Return review feedback
Claude->>GitHub: Post review feedback as comment
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ozzy2438 - I've reviewed your changes - here's some feedback:
- Add explicit conditions to skip running the workflow on comments or PR updates made by the Claude bot itself to prevent infinite recursive triggers.
- Consider narrowing your trigger scopes (e.g. by file path or specific branches) so the workflow only runs on relevant changes and reduces unnecessary runs.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Add explicit conditions to skip running the workflow on comments or PR updates made by the Claude bot itself to prevent infinite recursive triggers.
- Consider narrowing your trigger scopes (e.g. by file path or specific branches) so the workflow only runs on relevant changes and reduces unnecessary runs.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
🤖 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 documentation.
After merging this PR, let's try mentioning @claude in a comment on any PR to get started!
Summary by Sourcery
Set up GitHub Actions workflows for Claude Code integration to automate AI-driven pull request reviews and handle @claude mentions for in-context assistance.
CI: