Unify OpenCode PR review output to a single opencode-agent[bot] comment#10
Closed
dceoy wants to merge 1 commit into
Closed
Unify OpenCode PR review output to a single opencode-agent[bot] comment#10dceoy wants to merge 1 commit into
dceoy wants to merge 1 commit into
Conversation
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
On PR review runs, OpenCode posted two PR-visible outputs:
github-actions[bot], caused by/review-prcallinggh api .../pulls/$PR_NUMBER/reviews(with agh pr commentfallback).opencode-agent[bot]fromopencode github run.Change
Unify output to exactly one PR-visible post from
opencode-agent[bot]. The orchestrator now returns a single concise markdown review response;opencode github runposts it.github-actions[bot]no longer posts a review..opencode/commands/review-pr.md/review-prfrom a GitHub-posting command into a review-output command.gh api -X POST .../reviews,gh pr review,gh pr comment, and the failure fallback that posted a top-level comment.file:linereference validation; unverifiable lines are demoted tofile-only references (kept, not dropped).opencode github runis responsible for posting asopencode-agent[bot].No noteworthy issues found.No praise, padding, duplicate summaries, or status logs.gh pr diff/gh pr viewread-only), parallel subagent launch, normalization, dedup, root-cause aggregation, severity grouping..opencode/skills/review-pr/SKILL.mdgh api, inline-comment, GitHub Review API, andgh pr commentposting sections.gh api,gh pr review, orgh pr comment;opencode github runposts asopencode-agent[bot]..github/workflows/opencode.ymlopencode-reviewjob permissions reduced defensively topull-requests: readandissues: read(waswrite); keptcontents: read,id-token: write,actions: read. This prevents accidental futuregithub-actions[bot]write-side posting while still allowing PR metadata/diff reads and OpenCode App token exchange.opencode-botjob permissions left unchanged (mention-triggered bot workflows may still need write through the OpenCode integration).README.md/review-prreturns a single response posted byopencode-agent[bot]and does not post a GitHub Review or inline comments; required permissions updated topull-requests: read.Acceptance criteria
/review-prno longer instructs the agent to call GitHub write APIs directly.opencode-agent[bot].github-actions[bot]no longer posts an OpenCode PR Review or inline review comments.file:linereferences.Drafted for review before merge.