From 04cc0f7a9452e5345e7adcc22fccc6c4eee857dd Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 4 Jan 2026 21:58:47 +0000 Subject: [PATCH] Enable PR comment posting in Claude code review workflow Add --allowedTools to claude_args to enable the GitHub commenting tools that Claude needs to post review feedback. Without these tools explicitly allowed, automation mode doesn't post comments. Tools enabled: - mcp__github_inline_comment__create_inline_comment: inline code annotations - Bash(gh pr comment:*): top-level PR comments via GitHub CLI - Read,Glob,Grep: file reading for code review --- .github/workflows/claude-code-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index b8be1d1..11b7612 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -24,7 +24,7 @@ jobs: uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - claude_args: "--model claude-opus-4-5-20251101" + claude_args: "--model claude-opus-4-5-20251101 --allowedTools mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Read,Glob,Grep" use_sticky_comment: true prompt: | Perform a comprehensive code review of the changes in this PR. Provide actionable feedback with specific line references.