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: an on-demand workflow triggered by @claude mentions and an automatic code review workflow that runs on all PRs.
Changes:
- Adds
.github/workflows/claude.ymlfor on-demand Claude interactions via@claudementions in PR/issue comments - Adds
.github/workflows/claude-code-review.ymlfor automatic code reviews on new and updated PRs - Both workflows use the Anthropic Claude Code action and require the
CLAUDE_CODE_OAUTH_TOKENsecret
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 Code workflow that triggers on @claude mentions in issues, PRs, and comments to enable AI-assisted coding tasks |
.github/workflows/claude-code-review.yml |
Automated code review workflow that runs Claude's code review plugin on all PR opens and updates |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| contents: read | ||
| pull-requests: read | ||
| issues: read |
There was a problem hiding this comment.
The workflow grants read-only permissions (contents: read, pull-requests: read, issues: read), but the PR description states Claude will "create comments, branches, and commits". Verify whether the claude_code_oauth_token handles write operations independently, or if these permissions need to be elevated to write access (contents: write, pull-requests: write, issues: write) for Claude to function as described.
| contents: read | |
| pull-requests: read | |
| issues: read | |
| contents: write | |
| pull-requests: write | |
| issues: write |
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read |
There was a problem hiding this comment.
The workflow grants read-only permissions (pull-requests: read), which may be insufficient for Claude Code Review to post review comments on pull requests. Verify whether the claude_code_oauth_token handles write operations independently, or if pull-requests: write permission needs to be added.
| 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!