Repository navigation
ci(claude): post reviews via the action's native mechanism, not gh - #53
Merged
Merged
Conversation
The first real run of the project-aware reviewer (PR #50, Sonnet 4.6, no 401) analysed the PR but posted nothing: 14 permission denials and "No buffered inline comments". Root cause: the prompt told Claude to post the review with gh, but claude-code-action restricts shell tools and posts inline comments through its own native buffer (post-buffered-inline-comments.ts) — gh attempts are denied. Fix the prompt to leave inline review comments through the action's native mechanism (which it buffers and posts automatically) and to stop invoking gh/git. Keeps the summary + inline structure; only the posting path changes. Signed-off-by: Gonzalo Fleming <[email protected]>
2 tasks done
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
Fixes a bug found on the first real run of the project-aware reviewer: it analysed the PRs but posted nothing.
What happened
When the updated reviewer ran on the ADR PRs (#46/#47/#49/#50) it completed successfully — no 401, model
claude-sonnet-4-6confirmed, ~$0.27 / 13 turns of real analysis — but the result was"permission_denials_count": 14and"No buffered inline comments". It posted no review.Root cause: the prompt told Claude to "post the review using gh". But
claude-code-actionrestricts shell tools and posts inline comments through its own native buffer (post-buffered-inline-comments.ts), classifying them before posting. Claude'sghattempts were denied (the 14 denials), and because the prompt didn't route it through the native mechanism, nothing was buffered → nothing posted.The fix
Change the prompt's output instructions: leave findings as inline review comments through the action's native mechanism (it buffers and posts them automatically) and stop invoking gh/git. The summary + inline structure is unchanged — only the posting path.
Type of change
Validation plan
Like #52, this PR modifies the review workflow, so its own
claude-reviewcheck will 401 (workflow-validation, benign — expected). The real test is the first PR opened after this merges: the reviewer should post a summary + inline comments (or a clean "nothing to flag" summary) with zero permission denials.Checklist