Repository navigation
ci(claude): pass --comment so the code-review plugin posts its findings - #56
Merged
Merged
Conversation
The plugin's command is explicit (step 7): 'If --comment argument was NOT provided, stop here. Do not post any GitHub comments.' Our prompt never passed it, so every review ran to completion and printed its findings only to the job log — confirmed by the PR #46 run transcript (run 27358953209), which ends with 'No --comment flag provided — no GitHub comments posted' right after compiling four findings. Companion to #55: that PR mounted the github_inline_comment MCP server the posting step needs; this one flips the plugin's own posting switch. Signed-off-by: Gonzalo Fleming <[email protected]>
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
Companion to #55: passes
--commentto the code-review plugin so it actually posts its findings to the PR instead of printing them only to the job log.Motivation
After #55 merged, the first
claude-reviewrun with the fixed workflow (run27358953209, PR #46) mounted the inline-comment MCP server correctly and produced the newclaude-review-transcriptartifact — which is precisely what made the remaining gap visible. The transcript shows the reviewer completed the full review, compiled four findings, and then stopped with:That is the plugin working as documented: step 7 of
code-review.mdreads "If--commentargument was NOT provided, stop here. Do not post any GitHub comments." Ourprompt:never passed the flag, so no run has ever been authorized to post.The fix
One line: append
--commentto the plugin invocation inprompt:. With it, the plugin posts inline comments per finding viamcp__github_inline_comment__create_inline_comment(the tool #55 made available) and a summary comment when there are no findings.Verification
Same caveat as #55: the OIDC token exchange rejects runs whose workflow file differs from
main's, so theclaude-reviewcheck on this PR fails by design and the fix can only be exercised after merge. Expected on the first post-merge run: inline comments (or a "No issues found" summary comment) actually appearing on the reviewed PR. The transcript artifact from #55 makes the outcome auditable either way.Type of change
Checklist
git commit -s).Security considerations
The flag only authorizes the plugin's documented posting path (inline review comments via the action's MCP server, using the workflow's
pull-requests: writepermission already in place). No new permissions, no untrusted interpolation.