barmore-genc/opencode-review

Run an opencode-powered code review on a pull request and post the verdict as a comment.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
modelopencode model string, e.g. `deepseek/deepseek-v4-pro` or `anthropic/claude-sonnet-4-6`. The corresponding provider API key env var (e.g. `DEEPSEEK_API_KEY`, `ANTHROPIC_API_KEY`) must be set in the calling job's env.yes
pr-numberPull request number to review.yes
opencode-versionPin a specific opencode version (passed as `OPENCODE_VERSION` to the install script). Default: latest. Pinning is recommended for production use.no""
user-commentBody of the triggering comment, if any. Used to extract optional reviewer guidance after `/oc review`.no""
review-filePath where opencode writes the review (relative to the workspace).no./opencode-review.md
workflow-run-urlURL of the workflow run for the "starting review" link. Defaults to the current run.no""
post-start-commentPost a "Starting review…" comment when the run begins. Reviews take a few minutes, so the default keeps users from thinking the bot is broken. Set to `false` to post only the final review comment.notrue

no outputs