From 1b2f5c373e3f2fdad595b73b9051bb93b9f7f4cb Mon Sep 17 00:00:00 2001 From: km-anthropic Date: Tue, 12 Aug 2025 11:56:41 -0700 Subject: [PATCH] Update workflow to use GitHub MCP tools for PR reviews --- .github/workflows/claude-auto-review-test.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/claude-auto-review-test.yml b/.github/workflows/claude-auto-review-test.yml index 17bcf76..cfeb987 100644 --- a/.github/workflows/claude-auto-review-test.yml +++ b/.github/workflows/claude-auto-review-test.yml @@ -31,16 +31,8 @@ jobs: - Overall architecture and design decisions - Documentation consistency - After completing your review, write it to a file then post it as a PR comment using these commands: - - 1. First save your review to a file: - cat > /tmp/pr-review.md << 'EOF' - YOUR_REVIEW_CONTENT_HERE - EOF - - 2. Then post it: - gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body-file /tmp/pr-review.md - - Make sure to format your review nicely with markdown headers, bullet points, and code blocks. + Use the GitHub MCP tools to create a proper PR review with comments. + You can use mcp__github__create_pending_pull_request_review to start a review + and mcp__github__submit_pull_request_review to submit it as a COMMENT (not APPROVE). anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - claude_args: "--allowedTools Bash(gh pr comment:*),Read,Grep,Glob" + claude_args: "--allowedTools mcp__github__create_pending_pull_request_review,mcp__github__submit_pull_request_review,Read,Grep,Glob"