Skip to content

Add Claude Code GitHub Workflow#17

Merged
mandarnilange merged 2 commits into
mainfrom
add-claude-github-actions-1782110943653
Jun 22, 2026
Merged

Add Claude Code GitHub Workflow#17
mandarnilange merged 2 commits into
mainfrom
add-claude-github-actions-1782110943653

Conversation

@mandarnilange

@mandarnilange mandarnilange commented Jun 22, 2026

Copy link
Copy Markdown
Owner

🤖 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

  • New Features
    • Added automated code review capability for pull requests using Claude AI
    • Users can request code review on-demand by mentioning @claude in pull request and issue comments

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5c23176e-bef1-4a2e-a9e6-7c37eb0adfe7

📥 Commits

Reviewing files that changed from the base of the PR and between b82bde0 and 57c8d7f.

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

📝 Walkthrough

Walkthrough

Two GitHub Actions workflows are added: claude-code-review.yml triggers automated PR review via anthropics/claude-code-action@v1 on pull request events, while claude.yml enables on-demand Claude interaction when @claude appears in issue/PR comments or reviews, using CLAUDE_CODE_OAUTH_TOKEN in both cases.

Changes

Claude GitHub Actions Workflows

Layer / File(s) Summary
Automated PR code review workflow
.github/workflows/claude-code-review.yml
Adds a workflow triggered on pull_request events (opened, synchronize, ready_for_review, reopened) that runs the claude-review job with scoped permissions, checks out the repo, and invokes anthropics/claude-code-action@v1 with CLAUDE_CODE_OAUTH_TOKEN, plugin configuration, and a prompt referencing the current PR number.
Interactive @claude assistant workflow
.github/workflows/claude.yml
Adds a workflow listening for issue_comment, pull_request_review_comment, issues, and pull_request_review events, gated on the presence of @claude in the relevant text. Grants id-token: write and actions: read permissions, checks out the repo, and invokes anthropics/claude-code-action@v1; custom prompt and claude_args sections are left commented out.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐇 Two new workflows, hopping into place,
One reviews PRs with automated grace,
The other awakens when @claude appears,
Reading CI results, calming review fears.
With OAuth tokens and permissions set right,
This rabbit's CI now shines extra bright! ✨


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.

@mandarnilange mandarnilange merged commit cb11125 into main Jun 22, 2026
4 of 6 checks passed
@mandarnilange mandarnilange deleted the add-claude-github-actions-1782110943653 branch June 22, 2026 06:49
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