opencode-server: require agents to fetch and apply PR templates - #25
Merged
Conversation
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.
Chart CI passedRepository hygiene and Helm validation passed. View the workflow run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 to0.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
Validation
templates/configmap.yamlrendersfiles/AGENTS.mdvia.Files.Get, so no template change was needed (verified against current source)Impact and rollout
charts/opencode-server(packaged agent policy → ConfigMap → serverAGENTS.md).kustomize-clusterOpenCode Application pin.0.1.20publishes to GHCR; the main workflow opens/updates thekustomize-clusterpin PR (auto-merge after its checks). Argo CD reconciliation, rollout health, and agent-session behavior are verified separately afterward.Safety and secrets