mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 06:54:13 +08:00
- Changed github-comment-server to github_comment (correct registration name) - Added github_inline_comment server for PR contexts - Updated workflow to use correct tool names (mcp__github_inline_comment__) - Simplified prompt to use inline comments instead of full PR reviews
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: Auto review PRs
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened]
|
|
|
|
jobs:
|
|
auto-review:
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Auto review PR
|
|
uses: ./
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
prompt: |
|
|
Please review this PR and provide comprehensive feedback.
|
|
|
|
Use the mcp__github_inline_comment__create_inline_comment tool to add inline comments on specific lines where you have feedback.
|
|
|
|
In your review, provide thoughtful feedback on:
|
|
- Code quality and best practices
|
|
- Potential bugs or issues
|
|
- Suggestions for improvements
|
|
- Overall architecture and design decisions
|
|
- Documentation consistency
|
|
|
|
Be constructive and specific in your feedback.
|
|
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
claude_args: "--allowedTools mcp__github_inline_comment__create_inline_comment,Read,Grep,Glob"
|