feat(review): --post publishes PR reviews with inline high-confidence comments#64
Merged
JohnnyVicious merged 1 commit intomainfrom Apr 14, 2026
Merged
Conversation
When `/opencode:review --pr N --post` or `/opencode:adversarial-review --pr N --post` runs, the companion now publishes the review back to the GitHub PR as a review comment: - The summary body is a structured markdown block: verdict badge, model, a findings table (severity / confidence / file / lines / title), and a collapsible "Full findings" section with body + recommendation per finding. - Findings with confidence at or above `--confidence-threshold` (default 0.8, configurable as a float or percent) whose line is addressable on the PR's unified diff are posted as inline review comments anchored to that specific line. Findings below the threshold or outside the diff stay in the summary table only. - Reviews are always published with `event: "COMMENT"` — never `REQUEST_CHANGES` — because this tool is advisory. - Posting failures are non-fatal: the local review output is already on stdout, so a network or auth glitch on GitHub logs a warning to stderr instead of flipping the whole run to a non-zero exit. Opt-in was the explicit design choice: anyone already using `--pr N` for private sanity checks should not get surprise public comments, and `--post` is easy to add to muscle memory. Also relax the 7-second body-stall assertion in send-prompt-body-timeout.test.mjs — the deepEqual already proves the code path survives the stall, and the timing bound flaked under WSL2 clock skew.
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
Design decisions
Implementation
Test plan
Follow-ups (out of scope)