ci: pass --comment so claude-review posts findings to PRs#535
Merged
Conversation
The code-review plugin only posts findings when invoked with `--comment`; without it the action reviews the PR (spending tokens) but prints to the hidden terminal and posts nothing. Confirmed across PRs #522–#527/#529: runs complete `success` with write perms (post-#531) but log "No buffered inline comments" and leave zero comments. Per the plugin spec ("If --comment was NOT provided, stop here. Do not post any GitHub comments."). Append --comment to the prompt; #531's pull-requests/issues write perms are required for it to post and stay in place. 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 invokes the
code-reviewplugin without--comment:Per the plugin spec, "If
--commentwas NOT provided, stop here. Do not post any GitHub comments." So the review runs (and spends tokens, ~$2/PR) but posts nothing — confirmed on #522–#527/#529: runs completesuccesswith write perms (post-#531) yet log "No buffered inline comments" and leave zero comments.This was the actual blocker; #531's read→write permission bump was necessary (the plugin needs write to post) but not sufficient on its own.
Fix
Append
--commentto the prompt. Keeps #531'spull-requests: write/issues: write.Verify (after merge)
Trigger a fresh
synchronizeon a same-repo PR (push a commit / rebase — a re-run replays the old prompt), then check for aclaude[bot]review comment viagh api repos/getzep/zep/pulls/<n>/comments. (Fork PRs like #511 still won't post —pull_requestruns from forks get noCLAUDE_CODE_OAUTH_TOKEN; that needs a separate trigger.)🤖 Generated with Claude Code