Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds two GitHub Actions workflows to enable Claude Code integration in the repository. The first workflow allows team members to invoke Claude by mentioning @claude in PR or issue comments, while the second provides automated code reviews on new or updated pull requests.
Key Changes:
- Added
.github/workflows/claude.ymlfor interactive @claude mentions in comments - Added
.github/workflows/claude-code-review.ymlfor automatic PR code reviews
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/claude.yml | Defines workflow triggers for @claude mentions and configures permissions for Claude to interact with the repository |
| .github/workflows/claude-code-review.yml | Sets up automated code review workflow that runs on PR open/update events with specific review criteria |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read |
There was a problem hiding this comment.
The contents: read permission may be insufficient if Claude needs to create branches or commits as mentioned in the PR description. Consider adding contents: write permission to enable Claude's full functionality for file operations.
| contents: read | |
| contents: write |
| pull-requests: read | ||
| issues: read |
There was a problem hiding this comment.
The pull-requests: read and issues: read permissions may be insufficient if Claude needs to create comments, branches, and commits as described 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 |
There was a problem hiding this comment.
The permissions are set to read-only, but line 52 instructs Claude to use gh pr comment to leave review comments. This requires pull-requests: write permission to post comments on the PR.
| pull-requests: read | |
| pull-requests: write |
🤖 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!