Skip to content

Add Claude Code GitHub Workflow#8

Merged
baanish merged 2 commits into
mainfrom
add-claude-github-actions-1774840151726
Mar 30, 2026
Merged

Add Claude Code GitHub Workflow#8
baanish merged 2 commits into
mainfrom
add-claude-github-actions-1774840151726

Conversation

@baanish
Copy link
Copy Markdown
Owner

@baanish baanish commented Mar 30, 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
    • Integrated automated code review on pull requests
    • Enabled Claude assistant integration for collaborative feedback in issues and pull requests

@baanish baanish merged commit 2a5a880 into main Mar 30, 2026
2 checks passed
@baanish baanish deleted the add-claude-github-actions-1774840151726 branch March 30, 2026 03:09
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 30, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 96a3fbf9-8f87-4870-9845-f3c40f2ce07c

📥 Commits

Reviewing files that changed from the base of the PR and between 129c2c1 and 4dcc61c.

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

📝 Walkthrough

Walkthrough

Two new GitHub Actions workflows are added to enable Claude-powered code review and assistance features. The first workflow automatically reviews pull requests on creation or update, while the second provides interactive Claude assistance triggered by comments containing the @claude tag.

Changes

Cohort / File(s) Summary
GitHub Actions Workflows
.github/workflows/claude-code-review.yml, .github/workflows/claude.yml
Added two GitHub Actions workflow files: one for automated PR code review (triggered on PR events), and another for interactive Claude assistance (triggered by @claude mentions in comments and reviews). Both workflows authenticate using Claude OAuth tokens and utilize the anthropics/claude-code-action@v1 action.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A rabbit hops with glee,
Two workflows now let Claude see,
Code reviewed with thoughtful care,
Comments answered everywhere! ✨
GitHub's workflow, clean and bright,
Making code reviews just right!

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-claude-github-actions-1774840151726

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@kilo-code-bot
Copy link
Copy Markdown

kilo-code-bot Bot commented Mar 30, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

This PR adds two GitHub Actions workflow files for Claude Code integration. Both workflows are well-structured with appropriate permissions.

Observations

  • Permissions are properly scoped — both workflows use read-only permissions on contents, PRs, and issues, with id-token: write for OIDC authentication.
  • Secrets are handled correctlyCLAUDE_CODE_OAUTH_TOKEN is referenced via ${{ secrets.* }} and never hardcoded.
  • Checkout is efficientfetch-depth: 1 is used to minimize clone time.
  • Trigger conditions are appropriateclaude.yml has a proper if condition to only run when @claude is mentioned, preventing unnecessary workflow runs.
  • Version pinning — Both use anthropics/claude-code-action@v1 which is a reasonable major version pin.
Files Reviewed (2 files)
  • .github/workflows/claude-code-review.yml — Auto PR review workflow
  • .github/workflows/claude.yml — Interactive @claude mention workflow

Reviewed by mimo-v2-pro-20260318 · 60,033 tokens

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