barmore-genc/opencode-review
Run an opencode-powered code review on a pull request and post the verdict as a comment.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| model | opencode 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-number | Pull request number to review. | yes | — |
| opencode-version | Pin a specific opencode version (passed as `OPENCODE_VERSION` to the install script). Default: latest. Pinning is recommended for production use. | no | "" |
| user-comment | Body of the triggering comment, if any. Used to extract optional reviewer guidance after `/oc review`. | no | "" |
| review-file | Path where opencode writes the review (relative to the workspace). | no | ./opencode-review.md |
| workflow-run-url | URL of the workflow run for the "starting review" link. Defaults to the current run. | no | "" |
| post-start-comment | Post 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. | no | true |
Outputs
no outputs