Skip to content

Add Claude Code GitHub Workflow#26

Closed
PythonFZ wants to merge 2 commits intomainfrom
add-claude-github-actions-1778075286623
Closed

Add Claude Code GitHub Workflow#26
PythonFZ wants to merge 2 commits intomainfrom
add-claude-github-actions-1778075286623

Conversation

@PythonFZ
Copy link
Copy Markdown
Member

@PythonFZ PythonFZ commented May 6, 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
    • Added automated code review workflows for pull requests and code-related events.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 6, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 85dcdf31-6323-48e6-ab76-6141262091a2

📥 Commits

Reviewing files that changed from the base of the PR and between 79c1b63 and c35e2fb.

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

📝 Walkthrough

Walkthrough

Two new GitHub Actions workflows are added: one triggers on pull requests to run Claude Code Review, and another responds to GitHub events (comments, reviews, issues) to invoke Claude Code action with conditional execution based on mentions.

Changes

Claude Code Review Automation

Layer / File(s) Summary
Workflow Configuration
.github/workflows/claude-code-review.yml
New workflow triggers on PR events, runs claude-code-action@v1 with token, plugin marketplace, and PR context prompt for automated code review.

Claude Code On-Demand Automation

Layer / File(s) Summary
Workflow Configuration
.github/workflows/claude.yml
New workflow triggers on issue comments, PR review comments, PR events, and issue events; executes Claude Code action conditionally based on "@claude" mentions with token and optional custom prompt and args.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

A rabbit hops through GitHub's halls,
Where Claude now answers review calls—
Two workflows bloom, both sleek and bright,
Automating code, morning to night! 🐰✨

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

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Microsoft Presidio Analyzer (2.2.362)
.github/workflows/claude-code-review.yml

Microsoft Presidio Analyzer failed to scan this file


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.

@PythonFZ PythonFZ closed this May 6, 2026
@PythonFZ PythonFZ deleted the add-claude-github-actions-1778075286623 branch May 6, 2026 13:50
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