Fix Claude Code Review workflow so comments post on PRs#21
Open
jonnyspicer wants to merge 1 commit into
Open
Conversation
Convert the review to the code-review plugin and grant the GITHUB_TOKEN write scope. The token was scoped to pull-requests/issues: read, so any attempt to post a review was denied and nothing appeared on the PR. Add the inline-comment MCP tool and gh commands to --allowedTools so the plugin can buffer and post its comments, and enable track_progress for a visible summary. Mirrors the fix already applied to tower-finder-service. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Claude Code Review workflow ran on PRs but no review ever appeared. Two
layers of permission denials caused this:
GITHUB_TOKENwas scoped topull-requests: read/issues: read,so every attempt to post was denied.
code-reviewplugin buffers inline comments viamcp__github_inline_comment__create_inline_comment, which was not in Claude'sallowed tools, so posts were denied even with write scope.
Fix
pull-requests: writeandissues: write.--allowedToolswith the inline-comment MCP tool andghcommands so theplugin can buffer and post its review.
track_progress: truefor a visible summary comment.This mirrors the fix already applied to
tower-finder-service.🤖 Generated with Claude Code