Skip to content

Add Claude Code GitHub Workflow#2

Merged
greynewell merged 2 commits intomainfrom
add-claude-github-actions-1772143953992
Feb 26, 2026
Merged

Add Claude Code GitHub Workflow#2
greynewell merged 2 commits intomainfrom
add-claude-github-actions-1772143953992

Conversation

@greynewell
Copy link
Contributor

@greynewell greynewell commented Feb 26, 2026

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

Summary by CodeRabbit

  • Chores
    • Enabled automated Claude Code Review on pull requests
    • Added ability to request Claude assistance via @claude mentions in issues and PR reviews

@coderabbitai
Copy link

coderabbitai bot commented Feb 26, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 627ea49 and 80ba079.

📒 Files selected for processing (2)
  • .github/workflows/claude-code-review.yml
  • .github/workflows/claude.yml

Walkthrough

Two new GitHub Actions workflows are added to enable Claude AI code review integration. One workflow automatically reviews pull requests, while the other triggers Claude on demand through @claude mentions in issues and PR reviews. Both use the Claude Code Action from Anthropic with OAuth authentication.

Changes

Cohort / File(s) Summary
GitHub Actions Workflows
.github/workflows/claude-code-review.yml, .github/workflows/claude.yml
Two new workflows added: one triggers automatically on PR events (opened, synchronize, ready_for_review, reopened) to run Claude Code Review; the other activates on demand when @claude is mentioned in issues or PR reviews. Both workflows check out the repository and execute the Claude Code Action with OAuth token authentication and configurable permissions for contents, pull-requests, issues, and id-token access.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🤖 Claude now watches with a careful eye,
Pull requests pass through AI-powered supply,
With @claude mentions, insights arrive quick,
Code review magic—automation's the trick! ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-claude-github-actions-1772143953992

Comment @coderabbitai help to get the list of available commands and usage tips.

@greynewell greynewell merged commit e38a1dc into main Feb 26, 2026
1 of 2 checks 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.

1 participant