Add Claude Code GitHub Workflow#308
Merged
Merged
Conversation
PR Reviewer Guide 🔍(Review updated until commit 4dc78d9)Here are some key observations to aid the review process:
|
- 删除 claude-code-review.yml:原本 PR opened/sync 自动触发会无差别烧 OAuth 额度 - claude.yml if 加 author_association == 'OWNER' 门禁:只有仓库 owner 评论 @claude 才触发 - 加 Pick model step:默认 claude-sonnet-4-6;评论包含 --opus / claude-opus 时切 claude-opus-4-7 - 用 env 注入 body / title 而不是直接 inline expression,避免外部内容引号注入
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Persistent review updated to latest commit 4dc78d9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User 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:
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
Security
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!
PR Type
Enhancement
Description
Add a GitHub Actions workflow for Claude Code integration in
.github/workflows/claude.yml.Restrict workflow trigger to only repository OWNERs who mention
@claudein comments, reviews, or issues.Implement dynamic model selection: defaults to
claude-sonnet-4-6, switches toclaude-opus-4-7if--opusorclaude-opusis in the comment.Configure OAuth token secret, permissions, and
claude_argsfor theanthropics/claude-code-action@v1.Diagram Walkthrough
File Walkthrough
claude.yml
Add Claude Code workflow with owner gate and model selection.github/workflows/claude.yml
@claude.keyword).
Claude action.