mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 06:54:13 +08:00
Fix: Use correct MCP server names and add inline comment server for PRs
- 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
This commit is contained in:
12
.github/workflows/claude-auto-review-test.yml
vendored
12
.github/workflows/claude-auto-review-test.yml
vendored
@@ -22,11 +22,9 @@ jobs:
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
prompt: |
|
||||
Please review this PR using the GitHub review tools. You MUST:
|
||||
1. First, use mcp__github-comment-server__get_pull_request_diff to get the PR changes
|
||||
2. Then, use mcp__github-comment-server__create_pending_pull_request_review to start a review
|
||||
3. Use mcp__github-comment-server__add_comment_to_pending_review to add inline comments where needed
|
||||
4. Finally, use mcp__github-comment-server__submit_pending_pull_request_review with event="COMMENT" to submit the review
|
||||
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
|
||||
@@ -35,6 +33,6 @@ jobs:
|
||||
- Overall architecture and design decisions
|
||||
- Documentation consistency
|
||||
|
||||
IMPORTANT: You must submit the review as a COMMENT, not APPROVE or REQUEST_CHANGES.
|
||||
Be constructive and specific in your feedback.
|
||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
claude_args: "--allowedTools mcp__github-comment-server__create_pending_pull_request_review,mcp__github-comment-server__add_comment_to_pending_review,mcp__github-comment-server__submit_pending_pull_request_review,mcp__github-comment-server__get_pull_request_diff"
|
||||
claude_args: "--allowedTools mcp__github_inline_comment__create_inline_comment,Read,Grep,Glob"
|
||||
|
||||
Reference in New Issue
Block a user