OpenCode IssueOps Workflow
GitHub Actions workflow enabling AI-assisted contributions via /plan and /build issue comments.
github-actionsopencodeaiautomation
Overview
A GitHub Actions workflow (ported from se-polinema) that lets the repository owner drive AI code generation via issue comments.
How it works
- Anyone opens an issue describing a change
- The owner (
dhanifudin) comments/plan→ OpenCode reads the discussion and posts an implementation plan - After review,
/build→ OpenCode implements, builds, and opens a PR
Jobs
- check-auth — verifies the commenter is the repository owner (
dhanifudin) - plan — calls
opencode github runto generate a plan comment - build — creates
opencode/issue-<N>branch, implements, runsnpm run build, opens PR - report-error — comments error details on failure
Configuration
Secrets needed in repo settings:
OPENCODE_GO_API_KEYGH_WORKFLOW_PAT(repo + pull_requests write)
Variables (optional):
OPENCODE_PLAN_MODEL(default: kimi-k2.7)OPENCODE_BUILD_MODEL(default: deepseek-v4-pro)