Skip to content

Conversation

@justin808
Copy link
Member

@justin808 justin808 commented Feb 11, 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

Release Notes

  • Documentation

    • Updated code review workflow documentation and references.
  • Chores

    • Extended pull request code review triggers to include ready_for_review and reopened events.
    • Updated workflow configuration and runner settings for improved reliability.
    • Added path-based filtering capability for more targeted code reviews.

@justin808 justin808 merged commit b2d4e16 into master Feb 11, 2026
15 of 16 checks passed
@justin808 justin808 deleted the add-claude-github-actions-1770794728110 branch February 11, 2026 07:26
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 11, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

Two GitHub Actions workflow files are updated: the Claude Code Review workflow is restructured with expanded PR triggers, explicit steps, and adjusted permissions; the Claude workflow documentation is refined with updated references and minor formatting adjustments.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Configuration
.github/workflows/claude-code-review.yml
Restructured PR trigger events to include ready_for_review and reopened; replaced inline action invocation with explicit checkout and Claude Code Review steps; adjusted permissions from write to read for pull-requests and issues; removed top-level secrets block; added configuration inputs for token, plugin marketplace, plugins, and prompt.
Workflow Documentation Updates
.github/workflows/claude.yml
Updated action documentation references from CLI option docs to Claude CLI reference; removed model argument from sample claude_args; added trailing blank line for formatting consistency.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Workflows hop with triggers new,
PR ready and reopened too—
Steps explicit, permissions tight,
Claude reviews with renewed might! ✨

✨ 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-1770794728110

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.

@greptile-apps
Copy link

greptile-apps bot commented Feb 11, 2026

Greptile Overview

Greptile Summary

This PR adds/updates GitHub Actions workflows to enable Claude Code integration:

  • claude-code-review.yml now runs anthropics/claude-code-action@v1 directly on PR events (opened/synchronize/ready_for_review/reopened) and invokes a code-review plugin via a custom prompt.
  • claude.yml keeps the @claude-mention triggered workflow and updates the inline documentation link/comment for CLI arguments.

These workflows live under .github/workflows/ and rely on the CLAUDE_CODE_OAUTH_TOKEN secret plus GitHub OIDC (id-token: write) for the action to authenticate.

Confidence Score: 4/5

  • This PR looks safe to merge; changes are isolated to workflow configuration.
  • Only GitHub Actions YAML changed. I did not find any repo-local evidence that the new action inputs or permissions will fail at runtime; however, the correctness of the plugins/prompt configuration ultimately depends on the external anthropics/claude-code-action and the referenced plugin marketplace.
  • No files require special attention

Important Files Changed

Filename Overview
.github/workflows/claude-code-review.yml Replaces reusable workflow call with direct claude-code-action invocation and tightens permissions to read-only; no repo-local evidence of breakage found.
.github/workflows/claude.yml Updates documentation link/comment for CLI reference and removes explicit model from example args; no functional behavior change.

Sequence Diagram

sequenceDiagram
  participant Dev as Maintainer/Contributor
  participant GH as GitHub Actions
  participant WF as claude-code-review.yml
  participant Claude as anthropics/claude-code-action

  Dev->>GH: Open/sync/reopen PR
  GH->>WF: Trigger pull_request event
  WF->>GH: Checkout repository
  WF->>Claude: Run action with oauth token + plugins + prompt
  Claude-->>GH: Post results (per action/plugin behavior)
  GH-->>Dev: Review output available in Actions logs / PR (if action posts)
Loading

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