[PR #7268] [MERGED] chore: add claude code github workflow #24087

Closed
opened 2026-04-15 22:10:11 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7268
Author: @Bekacru
Created: 1/11/2026
Status: Merged
Merged: 1/11/2026
Merged by: @Bekacru

Base: canaryHead: add-claude-github-actions-1768150899414


📝 Commits (3)

  • 8964ea3 "Claude PR Assistant workflow"
  • 7e71781 "Claude Code Review workflow"
  • 2077407 Delete .github/workflows/claude-code-review.yml

📊 Changes

1 file changed (+50 additions, -0 deletions)

View changed files

.github/workflows/claude.yml (+50 -0)

📄 Description

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

Adds a single GitHub Actions workflow to integrate Claude Code. It listens for @claude mentions in issues and PR comments to run on-demand tasks directly in GitHub.

  • New Features

    • claude.yml: triggers on @claude in issue comments, PR review comments, PR reviews, and issues (title/body); runs anthropics/claude-code-action with required permissions, including actions: read to access CI results.
    • Uses the CLAUDE_CODE_OAUTH_TOKEN secret for authentication.
  • Migration

    • Add CLAUDE_CODE_OAUTH_TOKEN to repository secrets.
    • Merge this PR; then use @claude in issues or PRs to trigger.

Written for commit 2077407aa3. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7268 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 1/11/2026 **Status:** ✅ Merged **Merged:** 1/11/2026 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `add-claude-github-actions-1768150899414` --- ### 📝 Commits (3) - [`8964ea3`](https://github.com/better-auth/better-auth/commit/8964ea33279adadad8ff15212fe15522763c573d) "Claude PR Assistant workflow" - [`7e71781`](https://github.com/better-auth/better-auth/commit/7e7178195c29ee93153404431b129d68f5c5f1a2) "Claude Code Review workflow" - [`2077407`](https://github.com/better-auth/better-auth/commit/2077407aa3eeb28ff4423aa948b69e50c13a638b) Delete .github/workflows/claude-code-review.yml ### 📊 Changes **1 file changed** (+50 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/claude.yml` (+50 -0) </details> ### 📄 Description ## 🤖 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](https://claude.com/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](https://github.com/anthropics/claude-code-action). After merging this PR, let's try mentioning @claude in a comment on any PR to get started! <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds a single GitHub Actions workflow to integrate Claude Code. It listens for @claude mentions in issues and PR comments to run on-demand tasks directly in GitHub. - **New Features** - claude.yml: triggers on @claude in issue comments, PR review comments, PR reviews, and issues (title/body); runs anthropics/claude-code-action with required permissions, including actions: read to access CI results. - Uses the CLAUDE_CODE_OAUTH_TOKEN secret for authentication. - **Migration** - Add CLAUDE_CODE_OAUTH_TOKEN to repository secrets. - Merge this PR; then use @claude in issues or PRs to trigger. <sup>Written for commit 2077407aa3eeb28ff4423aa948b69e50c13a638b. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:10:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#24087