Skip to content

Fix Claude Code Review workflow so comments post on PRs#21

Open
jonnyspicer wants to merge 1 commit into
mainfrom
fix/claude-review-comments
Open

Fix Claude Code Review workflow so comments post on PRs#21
jonnyspicer wants to merge 1 commit into
mainfrom
fix/claude-review-comments

Conversation

@jonnyspicer

Copy link
Copy Markdown
Collaborator

Problem

The Claude Code Review workflow ran on PRs but no review ever appeared. Two
layers of permission denials caused this:

  1. The job's GITHUB_TOKEN was scoped to pull-requests: read / issues: read,
    so every attempt to post was denied.
  2. The code-review plugin buffers inline comments via
    mcp__github_inline_comment__create_inline_comment, which was not in Claude's
    allowed tools, so posts were denied even with write scope.

Fix

  • Grant pull-requests: write and issues: write.
  • Add --allowedTools with the inline-comment MCP tool and gh commands so the
    plugin can buffer and post its review.
  • Enable track_progress: true for a visible summary comment.

This mirrors the fix already applied to tower-finder-service.

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant