Make Claude code review post PR comments - #13
Merged
Conversation
The review workflow ran but never posted anything to the PR: - The code-review plugin only posts to GitHub when invoked with --comment; without it, findings go to the workflow log only. - The job token had read-only pull-requests/issues permissions. - Comment-posting tools were not in the allowed tools list. Add --comment (which also posts a "No issues found" summary when the review comes back clean), bump permissions to write, and allowlist the tools the plugin uses. Co-Authored-By: Claude Fable 5 <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.
Summary
The Claude Code Review workflow ran successfully on PRs but never posted any comments. Investigation of run
30175987844(PR #10) showed three compounding causes, all fixed here:--commentflag: thecode-reviewplugin explicitly stops before posting anything to GitHub unless invoked with--comment— findings only went to the workflow log.pull-requests: read/issues: read, sogh pr commentwould have failed anyway. Bumped towrite, matching the officialpr-review-comprehensive.ymlexample fromanthropics/claude-code-action.permission_denials_count: 8. Added--allowedToolsviaclaude_argscovering the tools the plugin uses (mcp__github_inline_comment__create_inline_comment,gh pr comment/diff/view/list, etc.).With
--comment, the plugin posts inline comments when it finds issues and a "No issues found" summary comment when the review comes back clean — so every reviewed PR gets visible feedback.Test plan
🤖 Generated with Claude Code