-
Notifications
You must be signed in to change notification settings - Fork 3
[CDX-265] Add Claude Code GitHub Workflow #78
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
Conversation
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.
Pull Request Overview
This PR adds GitHub Actions workflows to integrate Claude Code AI agent into the repository for automated assistance and code review.
- Adds two GitHub workflows: one for interactive Claude commands triggered by @claude mentions, and another for automatic code reviews on pull requests
- Configures appropriate permissions and security settings for Claude to interact with repository content
- Sets up customizable prompts and tool permissions for different use cases
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/claude.yml | Interactive Claude workflow triggered by @claude mentions in comments |
| .github/workflows/claude-code-review.yml | Automatic Claude code review workflow for pull requests |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| pull-requests: read | ||
| issues: read |
Copilot
AI
Sep 26, 2025
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.
The workflow is missing write permissions for pull-requests and issues that Claude would need to create comments, branches, and commits as mentioned in the PR description. Consider adding 'pull-requests: write' and 'issues: write' permissions.
| pull-requests: read | |
| issues: read | |
| pull-requests: write | |
| issues: write |
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read |
Copilot
AI
Sep 26, 2025
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.
The code review workflow is missing write permissions for pull-requests that would be needed for Claude to leave review comments on PRs as specified in the prompt. Consider adding 'pull-requests: write' permission.
| pull-requests: read | |
| pull-requests: write |
| - Security concerns | ||
| - Test coverage | ||
| Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback. |
Copilot
AI
Sep 26, 2025
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.
The prompt references a 'CLAUDE.md' file for style and conventions, but this file is not included in the PR. Either add the CLAUDE.md file or remove this reference from the prompt.
| Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback. | |
| Be constructive and helpful in your feedback. |
🤖 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!