mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-22 22:44:13 +08:00
Add auto-review workflow for testing
This commit is contained in:
39
.github/workflows/claude-auto-review.yml
vendored
Normal file
39
.github/workflows/claude-auto-review.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Auto Review PRs
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
|
||||
jobs:
|
||||
auto-review:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
issues: write
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Auto review PR
|
||||
uses: anthropics/claude-code-action@v1-dev
|
||||
with:
|
||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
prompt: |
|
||||
Please review this pull request and provide comprehensive feedback.
|
||||
|
||||
Focus on:
|
||||
- Code quality and best practices
|
||||
- Potential bugs or issues
|
||||
- Suggestions for improvements
|
||||
- Overall architecture and design decisions
|
||||
- Documentation consistency
|
||||
|
||||
Use the GitHub MCP tools to create a proper PR review with comments.
|
||||
You have access to mcp__github__ tools for creating and submitting reviews.
|
||||
|
||||
Create a review with constructive feedback and submit it as a COMMENT (not APPROVE).
|
||||
Reference in New Issue
Block a user