Skip to content

Add Claude Code GitHub Workflow - #1

Merged
jkirkmannz merged 2 commits into
mainfrom
add-claude-github-actions-1789180985157
Sep 12, 2026
Merged

jkirkmannz merged 2 commits into
mainfrom
add-claude-github-actions-1789180985157

Conversation

@jkirkmannz

Copy link
Copy Markdown
Owner

🤖 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:

  • Bug fixes and improvements
  • Documentation updates
  • Implementing new features
  • Code reviews and suggestions
  • Writing tests
  • And more!

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

  • This workflow won't take effect until this PR is merged
  • @claude mentions won't work until after the merge is complete
  • The workflow runs automatically whenever Claude is mentioned in PR or issue comments
  • Claude gets access to the entire PR or issue context including files, diffs, and previous comments

Security

  • Our Anthropic API key is securely stored as a GitHub Actions secret
  • Only users with write access to the repository can trigger the workflow
  • All Claude runs are stored in the GitHub Actions run history
  • Claude's default tools are limited to reading/writing files and interacting with our repo by creating comments, branches, and commits.
  • We can add more allowed tools by adding them to the workflow file like:
allowed_tools: Bash(npm install),Bash(npm run build),Bash(npm run lint),Bash(npm run test)

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!

Copilot AI lite review requested due to automatic review settings September 12, 2026 02:44
@jkirkmannz
jkirkmannz merged commit ff1dbed into main Sep 12, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 pr permission 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 --allowedTools here replaces the command's tool allowlist, but the code-review command also needs Bash(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"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants