Skip to content

ci(ai): L3-0000 Add Claude Code GitHub Workflow#885

Open
scottdickerson wants to merge 4 commits into
mainfrom
add-claude-github-actions-1782313002565
Open

ci(ai): L3-0000 Add Claude Code GitHub Workflow#885
scottdickerson wants to merge 4 commits into
mainfrom
add-claude-github-actions-1782313002565

Conversation

@scottdickerson

Copy link
Copy Markdown
Contributor

🤖 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!

Copilot AI review requested due to automatic review settings June 24, 2026 14:57
@scottdickerson scottdickerson changed the title Add Claude Code GitHub Workflow ci(ai): L3-0000 Add Claude Code GitHub Workflow Jun 24, 2026
@chromatic-com

chromatic-com Bot commented Jun 24, 2026

Copy link
Copy Markdown

Important

Testing in progress…

🟢 UI Tests: 464 tests unchanged
UI Review: Comparing 232 stories…
Storybook icon Storybook Publish: 232 stories published

@chromatic-com

chromatic-com Bot commented Jun 24, 2026

Copy link
Copy Markdown

Tip

All tests passed and all changes approved!

🟢 UI Tests: 464 tests unchanged
🟢 UI Review: 232 stories published -- no changes
Storybook icon Storybook Publish: 232 stories published

@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 the Anthropic Claude Code GitHub Action into the repo—one workflow triggered by @claude mentions in comments/reviews, and another that runs an automated Claude “code review” plugin on pull request events.

Changes:

  • Added a Claude Code workflow that triggers on PR/issue comment and PR review activity when @claude is mentioned.
  • Added a Claude Code Review workflow that runs on PR lifecycle events and invokes a code-review plugin via anthropics/claude-code-action@v1.

Reviewed changes

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

File Description
.github/workflows/claude.yml Adds an on-demand Claude workflow triggered by @claude mentions in comments/reviews.
.github/workflows/claude-code-review.yml Adds an automatic PR-triggered Claude code review workflow using the Claude Code action plugin mechanism.

Comment on lines +15 to +19
if: |
(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')))
Comment on lines +8 to +11
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
# github.event.pull_request.user.login == 'new-developer' ||
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'

runs-on: ubuntu-latest
@netlify

netlify Bot commented Jun 24, 2026

Copy link
Copy Markdown

Deploy Preview for phillips-seldon ready!

Name Link
🔨 Latest commit 1c17610
🔍 Latest deploy log https://app.netlify.com/projects/phillips-seldon/deploys/6a3d86882cc99900081d6fb1
😎 Deploy Preview https://deploy-preview-885--phillips-seldon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@scottdickerson

Copy link
Copy Markdown
Contributor Author

Can't merge until we have the GitHub Claude app installed on the seldon repo....

@scottdickerson scottdickerson added the DO_NOT_MERGE Either in feature freeze mode or not ready for merge label Jun 25, 2026
@scottdickerson scottdickerson removed the DO_NOT_MERGE Either in feature freeze mode or not ready for merge label Jun 25, 2026
@scottdickerson scottdickerson enabled auto-merge (squash) June 25, 2026 18:23
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