Skip to content

opencode-server: require agents to fetch and apply PR templates - #25

Merged
xnoto merged 1 commit into
mainfrom
opencode-pr-template-instruction
Aug 30, 2026
Merged

opencode-server: require agents to fetch and apply PR templates#25
xnoto merged 1 commit into
mainfrom
opencode-pr-template-instruction

Conversation

@xnoto

@xnoto xnoto commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a fetch-and-fill pull request template mandate to the shared OpenCode server instructions (opencode-server/files/AGENTS.md, "Repository and pull-request workflow") and bumps the chart to 0.1.20 (immutable OCI versions require the bump).

Background: the org default PR template shipped in makeitworkcloud/.github#6 and is confirmed auto-populating in the web UI. GitHub applies templates only in the web UI — API-created pull requests (all agentic sessions on this server) bypass them. This instruction closes that gap procedurally; a CI gate remains an available follow-up.

Fixes # — no tracking issue; requested directly in session.

Type of change

  • Bug fix
  • Feature / enhancement
  • Documentation
  • Infrastructure (OpenTofu root or module)
  • GitOps desired state (manifests, kustomize, charts, SOPS/KSOPS secrets)
  • Container image
  • CI / reusable workflow
  • Refactor / cleanup
  • Breaking change

Validation

  • Required pull-request checks pass (charts CI: repository hygiene, Helm rendering, packaging — links to follow once runs register)
  • Generated or centrally distributed files were regenerated by their owning automation, not hand-edited — N/A; templates/configmap.yaml renders files/AGENTS.md via .Files.Get, so no template change was needed (verified against current source)

Impact and rollout

  • Producer: charts/opencode-server (packaged agent policy → ConfigMap → server AGENTS.md).
  • Consumer: kustomize-cluster OpenCode Application pin.
  • After a confirmed merge: chart 0.1.20 publishes to GHCR; the main workflow opens/updates the kustomize-cluster pin PR (auto-merge after its checks). Argo CD reconciliation, rollout health, and agent-session behavior are verified separately afterward.
  • Merge, publish, and any GitOps merge remain confirmation-gated.

Safety and secrets

  • Contains no plaintext secrets, decrypted SOPS values, state files, kubeconfigs, tokens, or private endpoints
  • No local OpenTofu init/plan/apply/destroy/import/state operations were run or claimed — N/A, no OpenTofu in this change
  • Breaking or irreversible effects: none — content-only instruction change; running pods are unaffected until the ConfigMap rollout, which restarts the server with equivalent instructions plus the new PR-template bullets

GitHub applies pull request templates only in the web UI; API-created
pull requests bypass them. Add a fetch-and-fill mandate to the shared
server instructions ("Repository and pull-request workflow"): before
opening a PR, agents fetch the repository template (falling back to
the organization default at makeitworkcloud/.github) and use it as the
body skeleton with all headings preserved and placeholders replaced.

Bump chart to 0.1.20; OCI chart versions are immutable. The ConfigMap
renders files/AGENTS.md via .Files.Get, so no template change is needed.
@github-actions

Copy link
Copy Markdown

Chart CI passed

Repository hygiene and Helm validation passed. View the workflow run.

@xnoto
xnoto merged commit e1cc8b1 into main Aug 30, 2026
4 checks passed
@xnoto
xnoto deleted the opencode-pr-template-instruction branch August 30, 2026 22:31
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