Skip to content

feat(ci): add automatic OpenCode PR review workflow - #5

Merged
LiusCraft merged 1 commit into
mainfrom
feat/opencode-pr-review-workflow
Mar 14, 2026
Merged

feat(ci): add automatic OpenCode PR review workflow#5
LiusCraft merged 1 commit into
mainfrom
feat/opencode-pr-review-workflow

Conversation

@LiusCraft

Copy link
Copy Markdown
Owner

Summary

  • add .github/workflows/opencode-pr-review.yml to run OpenCode review automatically on pull_request open/update events
  • skip draft pull requests and use opencode/minimax-m2.5-free with OPENCODE_API_KEY
  • keep README.md focused on project overview, and codify doc scope expectations in AGENTS.md

Run OpenCode review on pull_request events using the MiniMax free model while skipping draft PRs. Keep README focused on project onboarding by moving documentation-scope guidance into AGENTS.md and removing operational workflow details.
@opencode-agent

Copy link
Copy Markdown

Review

Workflow (.github/workflows/opencode-pr-review.yml)

Positives:

  • Correctly skips draft PRs
  • Appropriate permissions scope
  • Uses vars with fallback for model

Issues:

  1. Pinning: Use @latest is risky for production. Pin to a specific version (e.g., @v1.x.x).
  2. Missing error handling: No explicit handling if OPENCODE_API_KEY secret is missing - will fail with unclear error.
  3. No timeout: Add timeout-minutes: 10 to prevent hung workflows.

AGENTS.md

The additions at lines 151-158 documenting doc scope expectations are good. No issues.

README.md

The removal of 16 lines streamlines the README as intended. However, the current README is still ~200 lines - arguably not "concise." Consider whether more trimming aligns with the stated goal.

Summary

Severity Issue
Medium Pin OpenCode action version
Low Add job timeout
Low Handle missing OPENCODE_API_KEY gracefully

The workflow is functional and well-structured. The main recommendation is pinning the action version for reproducibility.

New%20session%20-%202026-03-14T11%3A19%3A48.009Z
opencode session  |  github run

@LiusCraft
LiusCraft merged commit 7482ce4 into main Mar 14, 2026
1 check passed
@LiusCraft
LiusCraft deleted the feat/opencode-pr-review-workflow branch March 14, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant