Skip to content

Conversation

vlados
Copy link
Owner

@vlados vlados commented Oct 1, 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!

Summary by CodeRabbit

  • Chores
    • Introduced automated AI-assisted code reviews on pull requests to strengthen code quality, performance, security, and test coverage.
    • Enabled on-demand AI assistance for PRs and issues via mention, accelerating reviews and triage.
    • These changes affect internal development workflows only; there are no changes to product behavior, user experience, or public APIs.

Copy link

coderabbitai bot commented Oct 1, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Adds two GitHub Actions workflows integrating anthropics/claude-code-action@v1: one auto-runs on pull_request events to generate code reviews; another runs when @claude is mentioned or detected on PR/issue events. Both check out the repo and use a secret OAuth token to invoke the action with optional prompt/args.

Changes

Cohort / File(s) Change summary
Claude automation workflows
\.github/workflows/claude-code-review.yml, \.github/workflows/claude.yml
Introduces two workflows: (1) automated PR code review on opened/synchronize events with a predefined prompt and CLI permissions; (2) on-demand runs triggered by @claude mentions on PRs/issues, with conditional execution and documented optional params.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Dev as Developer
  participant GH as GitHub (PR Events)
  participant GHA as Actions Runner
  participant CC as anthropics/claude-code-action@v1
  participant API as GitHub API

  Dev->>GH: Open/Sync Pull Request
  GH-->>GHA: trigger workflow (claude-code-review.yml)
  GHA->>GHA: checkout repo
  GHA->>CC: run action with CLAUDE_CODE_OAUTH_TOKEN and prompt
  CC->>API: Read PR diff/files, metadata
  CC->>API: Post review/comment via gh pr comment
  API-->>Dev: Review visible on PR
Loading
sequenceDiagram
  autonumber
  actor User as User
  participant GH as GitHub (Issues/PRs)
  participant GHA as Actions Runner
  participant CC as anthropics/claude-code-action@v1
  participant API as GitHub API

  User->>GH: Create/Comment mentioning @claude
  GH-->>GHA: trigger workflow (claude.yml) if mention detected
  GHA->>GHA: checkout repo (fetch-depth: 1)
  GHA->>CC: run action with claude_code_oauth_token
  CC->>API: Read context (issue/PR), optional args
  CC->>API: Post response/comment
  API-->>User: Comment from Claude visible
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-claude-github-actions-1759346617443

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e47c8fe and ca9cf7c.

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

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

@vlados vlados merged commit 2f7e8ec into main Oct 1, 2025
8 of 9 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