Skip to content

Add Claude Code GitHub Workflow#1633

Merged
yarikoptic merged 1 commit intomasterfrom
add-claude-github-actions-1747940921375
May 22, 2025
Merged

Add Claude Code GitHub Workflow#1633
yarikoptic merged 1 commit intomasterfrom
add-claude-github-actions-1747940921375

Conversation

@yarikoptic-gitmate
Copy link
Copy Markdown
Collaborator

🤖 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 documentation.

After merging this PR, let's try mentioning @claude in a comment on any PR to get started!

@yarikoptic-gitmate yarikoptic-gitmate added the internal Changes only affect the internal API label May 22, 2025
@yarikoptic
Copy link
Copy Markdown
Member

I did that authorization for claude under my "service" account to not open it to way too many organizations

@codecov
Copy link
Copy Markdown

codecov bot commented May 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.80%. Comparing base (3e8b645) to head (e74a698).
⚠️ Report is 72 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1633      +/-   ##
==========================================
+ Coverage   88.68%   88.80%   +0.12%     
==========================================
  Files          82       82              
  Lines       11400    11400              
==========================================
+ Hits        10110    10124      +14     
+ Misses       1290     1276      -14     
Flag Coverage Δ
unittests 88.80% <ø> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yarikoptic
Copy link
Copy Markdown
Member

so green, cannot not check it out...

@yarikoptic yarikoptic merged commit caad6a6 into master May 22, 2025
33 checks passed
@yarikoptic yarikoptic deleted the add-claude-github-actions-1747940921375 branch May 22, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Changes only affect the internal API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants