Skip to content

Conversation

@bdmorin
Copy link
Owner

@bdmorin bdmorin commented Jul 28, 2025

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

@claude
Copy link

claude bot commented Jul 28, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

1 similar comment
@claude
Copy link

claude bot commented Jul 28, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

- Replace black formatter with ruff format
- Update mypy and pytest paths to use eyelet
- Update test installation commands to use eyelet
@bdmorin
Copy link
Owner Author

bdmorin commented Jul 29, 2025

Updated CI workflow to fix references to eyelet instead of rigging. This should fix the failing CI checks.

Resolved conflict in CI workflow - using main branch's uv run commands
@claude
Copy link

claude bot commented Jul 29, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@bdmorin
Copy link
Owner Author

bdmorin commented Jul 29, 2025

✅ PR is ready to merge!

CI Status:

  • ✅ All primary CI checks are passing (tests on Ubuntu, macOS, and Windows)
  • ❌ Claude Code Review workflow is failing because the ANTHROPIC_API_KEY secret needs to be configured in the repository settings

What this PR adds:

  1. claude.yml - Main Claude Code workflow that responds to @claude mentions in issues and PRs
  2. claude-code-review.yml - Automated PR review workflow that will run Claude on new PRs

Next steps after merging:

  1. Add the ANTHROPIC_API_KEY secret to the repository settings
  2. Test by mentioning @claude in an issue or PR comment
  3. The Claude Code Review workflow will automatically run on future PRs once the API key is configured

The failing Claude review check is expected and doesn't block merging. Once merged and the API key is added, Claude will be available to help with the project!

@bdmorin bdmorin merged commit 3a9029d into main Jul 29, 2025
7 of 8 checks passed
@bdmorin bdmorin deleted the add-claude-github-actions-1753740973632 branch July 29, 2025 22:06
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