projects/opencode-workflow.md

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

  1. Anyone opens an issue describing a change
  2. The owner (dhanifudin) comments /plan → OpenCode reads the discussion and posts an implementation plan
  3. 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 run to generate a plan comment
  • build — creates opencode/issue-<N> branch, implements, runs npm run build, opens PR
  • report-error — comments error details on failure

Configuration

Secrets needed in repo settings:

  • OPENCODE_GO_API_KEY
  • GH_WORKFLOW_PAT (repo + pull_requests write)

Variables (optional):

  • OPENCODE_PLAN_MODEL (default: kimi-k2.7)
  • OPENCODE_BUILD_MODEL (default: deepseek-v4-pro)