🫡 [claude] Add Claude Code GitHub Workflow#16
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR integrates Claude Code, an AI coding agent, into the GitHub repository by adding two workflow files that enable Claude to provide automated assistance and code reviews.
- Adds a workflow that triggers when @claude is mentioned in PR/issue comments
- Includes an automatic code review workflow for pull requests
- Configures necessary permissions and security settings for Claude integration
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/claude.yml | Main Claude workflow that responds to @claude mentions in comments |
| .github/workflows/claude-code-review.yml | Automated code review workflow that runs on PR creation/updates |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | ||
|
|
There was a problem hiding this comment.
Remove trailing whitespace on line 38 to maintain consistent formatting.
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| issues: read |
There was a problem hiding this comment.
The claude-code-review workflow is missing the 'actions: read' permission that is present in the main claude.yml workflow. This permission is needed for Claude to read CI results on PRs as mentioned in the comment on line 26 of claude.yml.
| issues: read | |
| issues: read | |
| actions: read |
🤖 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!