Skip to content

Conversation

@chicks-net
Copy link
Member

🤖 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 review requested due to automatic review settings October 16, 2025 19:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces Claude Code integration to the repository by adding two GitHub Actions workflows that enable AI-assisted coding through the Claude Code agent.

  • Adds a workflow to trigger Claude when mentioned in PR/issue comments
  • Adds an automated code review workflow that runs on pull requests
  • Configures appropriate permissions and security settings for both workflows

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/claude.yml Implements the main Claude Code workflow that responds to @claude mentions in comments
.github/workflows/claude-code-review.yml Implements automatic PR review functionality using Claude

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

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

The claude-review job requires pull-requests: write permission to post review comments on PRs, but only has read permission. This will cause the workflow to fail when attempting to use gh pr comment as specified in the prompt at line 52.

Suggested change
pull-requests: read
pull-requests: write

Copilot uses AI. Check for mistakes.
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

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

The claude job requires pull-requests: write permission to post comments and make changes to PRs, but only has read permission. Claude may not be able to perform its intended functions like creating comments, branches, or commits as described in the PR description.

Suggested change
pull-requests: read
pull-requests: write

Copilot uses AI. Check for mistakes.
@chicks-net chicks-net merged commit eaf31f8 into main Oct 16, 2025
1 check passed
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