Skip to content

Add Claude Code GitHub Workflow#312

Merged
DTTerastar merged 1 commit into
mainfrom
add-claude-github-actions-1777154720034
Apr 25, 2026
Merged

Add Claude Code GitHub Workflow#312
DTTerastar merged 1 commit into
mainfrom
add-claude-github-actions-1777154720034

Conversation

@DTTerastar
Copy link
Copy Markdown
Contributor

@DTTerastar DTTerastar commented Apr 25, 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
    • Configured GitHub Actions workflow to enable AI-assisted code review capabilities triggered by mentions in pull requests and issues.

@DTTerastar DTTerastar merged commit 0e5d3bb into main Apr 25, 2026
1 check was pending
@DTTerastar DTTerastar deleted the add-claude-github-actions-1777154720034 branch April 25, 2026 22:05
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 25, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7eec95da-bffb-4d3e-a272-837c55093a9e

📥 Commits

Reviewing files that changed from the base of the PR and between 3f78f86 and d2e5bb6.

📒 Files selected for processing (1)
  • .github/workflows/claude.yml

Walkthrough

Adds a new GitHub Actions workflow that triggers when @claude is mentioned in issues or pull requests. The workflow checks out the repository and executes Claude Code using a provided OAuth token with read-only permissions for repository contents and write access to id-tokens.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
.github/workflows/claude.yml
Introduces new workflow triggered by @claude mentions in issue/PR comments, review comments, or issue bodies. Executes Claude Code action with repository checkout, OAuth token authentication, and configured GitHub permissions (read-only for contents, PRs, issues, actions; write for id-token). Includes optional block for reading CI results on pull requests.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-claude-github-actions-1777154720034

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.

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