Skip to content

Add Claude Code GitHub Workflow - #3

Closed
bdelanghe wants to merge 6 commits into
mainfrom
add-claude-github-actions-1768493878331
Closed

bdelanghe wants to merge 6 commits into
mainfrom
add-claude-github-actions-1768493878331

Conversation

@bdelanghe

@bdelanghe bdelanghe commented Jan 15, 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!


Note

Adds Claude Code automation via GitHub Actions.

  • New claude-code-review.yml runs automated code reviews on PR events using anthropics/claude-code-action@v1 with code-review plugin and a review prompt
  • New claude.yml triggers Claude when @claude is mentioned in issues/PR comments/reviews, with permissions (incl. actions: read) to access CI results

Written by Cursor Bugbot for commit 8efe5bb. Configure here.

Copilot AI review requested due to automatic review settings January 15, 2026 16:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds GitHub Actions workflows to integrate Claude Code, an AI coding agent, into the repository. The integration allows team members to interact with Claude by mentioning @claude in comments and enables automated code reviews on pull requests.

Changes:

  • Added workflow for @claude mention triggers in issues and PR comments
  • Added workflow for automated Claude code reviews on pull requests

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/claude.yml Workflow that triggers when @claude is mentioned in issue/PR comments, allowing Claude to execute tasks
.github/workflows/claude-code-review.yml Workflow that automatically runs Claude code review when PRs are opened or updated

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/claude.yml Resolved
Comment thread .github/workflows/claude.yml Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Case-sensitive @claude check ignores capitalized mentions

Low Severity

The contains() function in GitHub Actions is case-sensitive, so @Claude, @CLAUDE, or other capitalizations won't trigger the workflow. Since GitHub's own mention system is case-insensitive and "Claude" is a proper noun users naturally capitalize, some mention attempts will silently fail with no feedback to the user about why Claude didn't respond.

Fix in Cursor Fix in Web

bdelanghe and others added 4 commits January 15, 2026 11:24
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bdelanghe

Copy link
Copy Markdown
Owner Author

Not now

@bdelanghe bdelanghe closed this Jan 21, 2026
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.

2 participants