Open
Conversation
Reviewer's GuideFügt zwei GitHub-Actions-Workflows hinzu, um Claude Code in das Repository zu integrieren: einen für Interaktionen nach Bedarf über @claude-Erwähnungen in Issues/PRs und einen weiteren, der automatisch Claude Code Review bei Pull-Request-Ereignissen ausführt. Sequenzdiagramm für den On-Demand-Claude-Code-Workflow via @claude-ErwähnungensequenceDiagram
actor Developer
participant GitHub
participant Workflow_claude
participant Job_claude
participant Claude_Code_Action
participant Anthropic_API
Developer->>GitHub: Create issue/PR or comment with @claude
GitHub-->>Workflow_claude: Trigger issue/PR/comment event
Workflow_claude->>Workflow_claude: Evaluate @claude condition
alt Condition_matches
Workflow_claude-->>Job_claude: Start job claude
Job_claude->>Claude_Code_Action: Run anthropics/claude-code-action@v1
Claude_Code_Action->>Anthropic_API: Call Anthropic with ANTHROPIC_API_KEY
Anthropic_API-->>Claude_Code_Action: Analysis and instructions
Claude_Code_Action->>GitHub: Read/write files, create comments, branches, commits
else No_match
Workflow_claude-->>GitHub: No Claude job started
end
Sequenzdiagramm für den automatischen Claude-Code-Review-WorkflowsequenceDiagram
actor Developer
participant GitHub
participant Workflow_claude_code_review
participant Job_claude_review
participant Claude_Code_Action
participant Anthropic_API
Developer->>GitHub: Open/update PR (opened, synchronize, ready_for_review, reopened)
GitHub-->>Workflow_claude_code_review: Trigger pull_request event
Workflow_claude_code_review-->>Job_claude_review: Start job claude-review
Job_claude_review->>Claude_Code_Action: Run anthropics/claude-code-action@v1
Claude_Code_Action->>Anthropic_API: Call Anthropic with ANTHROPIC_API_KEY
Claude_Code_Action->>Anthropic_API: Execute code-review plugin via prompt
Anthropic_API-->>Claude_Code_Action: Review results
Claude_Code_Action->>GitHub: Post review comments or summaries on PR
Änderungen auf Dateiebene
Tipps und BefehleInteraktion mit Sourcery
Dein Erlebnis anpassenRufe dein Dashboard auf, um:
Hilfe erhalten
Original review guide in EnglishReviewer's GuideAdds two GitHub Actions workflows to integrate Claude Code into the repository: one for on-demand interactions via @claude mentions on issues/PRs, and another that automatically runs Claude Code Review on pull request events. Sequence diagram for on-demand Claude Code workflow via @claude mentionssequenceDiagram
actor Developer
participant GitHub
participant Workflow_claude
participant Job_claude
participant Claude_Code_Action
participant Anthropic_API
Developer->>GitHub: Create issue/PR or comment with @claude
GitHub-->>Workflow_claude: Trigger issue/PR/comment event
Workflow_claude->>Workflow_claude: Evaluate @claude condition
alt Condition_matches
Workflow_claude-->>Job_claude: Start job claude
Job_claude->>Claude_Code_Action: Run anthropics/claude-code-action@v1
Claude_Code_Action->>Anthropic_API: Call Anthropic with ANTHROPIC_API_KEY
Anthropic_API-->>Claude_Code_Action: Analysis and instructions
Claude_Code_Action->>GitHub: Read/write files, create comments, branches, commits
else No_match
Workflow_claude-->>GitHub: No Claude job started
end
Sequence diagram for automatic Claude Code Review workflowsequenceDiagram
actor Developer
participant GitHub
participant Workflow_claude_code_review
participant Job_claude_review
participant Claude_Code_Action
participant Anthropic_API
Developer->>GitHub: Open/update PR (opened, synchronize, ready_for_review, reopened)
GitHub-->>Workflow_claude_code_review: Trigger pull_request event
Workflow_claude_code_review-->>Job_claude_review: Start job claude-review
Job_claude_review->>Claude_Code_Action: Run anthropics/claude-code-action@v1
Claude_Code_Action->>Anthropic_API: Call Anthropic with ANTHROPIC_API_KEY
Claude_Code_Action->>Anthropic_API: Execute code-review plugin via prompt
Anthropic_API-->>Claude_Code_Action: Review results
Claude_Code_Action->>GitHub: Post review comments or summaries on PR
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey – ich habe etwas übergeordnetes Feedback hinterlassen:
- In
.github/workflows/claude.ymlistactions: readbereits in den Job-Berechtigungen gewährt. Derselbe Scope inadditional_permissionswirkt daher redundant und könnte entfernt werden, es sei denn, du möchtest ihn ausdrücklich als Beispiel demonstrieren.
Prompt für KI-Agenten
Bitte gehe auf die Kommentare aus diesem Code-Review ein:
## Allgemeine Kommentare
- In `.github/workflows/claude.yml` ist `actions: read` bereits in den Job-Berechtigungen gewährt. Derselbe Scope in `additional_permissions` wirkt daher redundant und könnte entfernt werden, es sei denn, du möchtest ihn ausdrücklich als Beispiel demonstrieren.Sourcery ist für Open Source kostenlos – wenn dir unsere Reviews gefallen, teile sie gern ✨
Original comment in English
Hey - I've left some high level feedback:
- In
.github/workflows/claude.yml,actions: readis already granted in the job permissions, so the same scope inadditional_permissionsappears redundant and could be removed unless you specifically need to demonstrate it as an example.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In `.github/workflows/claude.yml`, `actions: read` is already granted in the job permissions, so the same scope in `additional_permissions` appears redundant and could be removed unless you specifically need to demonstrate it as an example.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
🤖 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!
Summary by Sourcery
GitHub Actions-Workflows hinzufügen, um Claude-Code-Interaktionen und automatisierte, KI-gestützte Code-Reviews für Pull Requests zu ermöglichen.
Neue Features:
Build:
anthropics/claude-code-actionintegriert werden.Original summary in English
Summary by Sourcery
Add GitHub Actions workflows to enable Claude Code interactions and automated AI-assisted code reviews on pull requests.
New Features:
Build: