Add Claude Code GitHub Workflow - #1
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Grant pull-requests: write before approval.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds Claude Code GitHub Actions workflows for automated PR reviews and comment-driven interactions.
Changes:
- Updates the commented
gh prpermission example. - Enables comment-based reviews and inline comment tooling.
Critical review finding: .github/workflows/claude-code-review.yml requires pull-requests: write for inline comments to work.
File summaries
| File | Summary |
|---|---|
.github/workflows/claude.yml |
Updates the optional tool permission example. |
.github/workflows/claude-code-review.yml |
Enables automated review comments and inline comment tooling; currently lacks the required write permission. |
Review details
Suppressed comments (1)
.github/workflows/claude-code-review.yml:42
- Passing
--allowedToolshere replaces the command's tool allowlist, but thecode-reviewcommand also needsBash(gh pr view:*),Bash(gh pr diff:*),Bash(gh pr list:*),Bash(gh pr comment:*), and the issue/search commands to gather context and post the review. With only the inline-comment MCP tool enabled, the review cannot complete; include the command's GitHub CLI tools in this list.
claude_args: '--allowedTools "mcp__github_inline_comment__create_inline_comment"'
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| plugins: 'code-review@claude-code-plugins' | ||
| prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}' | ||
| prompt: '/code-review:code-review --comment ${{ github.repository }}/pull/${{ github.event.pull_request.number }}' | ||
| claude_args: '--allowedTools "mcp__github_inline_comment__create_inline_comment"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 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!