Skip to content

Conversation

@vegaro
Copy link
Member

@vegaro vegaro commented Jan 14, 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!

@vegaro vegaro requested a review from a team as a code owner January 14, 2026 14:05
@vegaro vegaro requested a review from a team January 14, 2026 14:09
Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

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

Looking good! Just acouple questions. And we should also look into reusing the actions/workflows

# if: |
# github.event.pull_request.user.login == 'external-contributor' ||
# github.event.pull_request.user.login == 'new-developer' ||
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm do we need to filter out external contributors/forks here?

Copy link
Member Author

Choose a reason for hiding this comment

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

added a filter in e41a30b

actions: read
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
# prompt: 'Update the pull request description to include a summary of changes.'
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bit confusing... we're not giving it write access right?

Copy link
Member Author

Choose a reason for hiding this comment

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

right... I am confused as well. This was generated btw, but for that it would require the write permission above this

@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.99%. Comparing base (11f29c0) to head (e41a30b).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3011   +/-   ##
=======================================
  Coverage   78.99%   78.99%           
=======================================
  Files         341      341           
  Lines       13500    13500           
  Branches     1825     1825           
=======================================
  Hits        10664    10664           
  Misses       2078     2078           
  Partials      758      758           

☔ 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.

Comment on lines 15 to 18
# Only allow org members and owners to trigger Claude reviews
if: |
github.event.pull_request.author_association == 'MEMBER' ||
github.event.pull_request.author_association == 'OWNER'
Copy link
Member

Choose a reason for hiding this comment

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

What does OWNER mean here? PR owner? Maybe MEMBER is enough, as everyone will be RC org member?

Copy link
Member Author

@vegaro vegaro Jan 14, 2026

Choose a reason for hiding this comment

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

Owner of the repo. I asume owners are members? I'll double check

Copy link
Member Author

Choose a reason for hiding this comment

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

I added them both just in case owners were not members, but it looks like they are so I'll just do member

Comment on lines 3 to 11
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
Copy link
Member

Choose a reason for hiding this comment

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

What's the difference between this workflow and claude-code-review.yml? Do we need both?

Copy link
Member Author

Choose a reason for hiding this comment

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

we probably don't need the claude.yml one. It's to be able to tag claude in issues and PR comments, to request reviews if I understand correctly. The other one runs automatically

@vegaro
Copy link
Member Author

vegaro commented Jan 14, 2026

@claude what can you do?

@vegaro
Copy link
Member Author

vegaro commented Jan 16, 2026

I've moved this to RevenueCat/sdk-github-workflows#2 so it can be shared everywhere

@vegaro vegaro closed this Jan 16, 2026
@vegaro vegaro deleted the add-claude-github-actions-1768399501180 branch January 16, 2026 16:52
@vegaro vegaro restored the add-claude-github-actions-1768399501180 branch January 19, 2026 12:40
@vegaro vegaro reopened this Jan 19, 2026
@vegaro
Copy link
Member Author

vegaro commented Jan 19, 2026

Reopened to reuse the shared workflow

@vegaro vegaro requested a review from tonidero January 19, 2026 16:29
Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

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

🚢

@vegaro vegaro merged commit 19742f3 into main Jan 19, 2026
6 of 22 checks passed
@vegaro vegaro deleted the add-claude-github-actions-1768399501180 branch January 19, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants