coily ops forgejo: add issue create verb so agents can file forgejo issues without curl+SSM #69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
coily ops forgejocurrently exposes onlyadminanddoctorsubtrees (coily/cmd/coily/ops_forgejo.go). When an agent needs to file an issue on acoilysiren/*repo, GH issues are disabled everywhere, and forgejo is the canonical tracker per AGENTS.md "Default TODO Destination," but there's no coily surface for it. Today's workaround is:coily ops aws ssm get-parameter --name /forgejo/api-token --with-decryption ...curl -X POST https://forgejo.coilysiren.me/api/v1/repos/<owner>/<repo>/issues -H "Authorization: token ..." -d @fileThat's ~4 steps and a token leak risk per issue, repeated every time. "Wastes a lot of time" per the conversation that spawned this ticket.
Fix
Add
coily ops forgejo issue create --repo <owner/repo> --title <t> --body-file <path>(and the obvious siblings:list,view,comment). Internally:/forgejo/api-tokenvia the existing SSM client (already wired for other coily verbs).https://forgejo.coilysiren.me/api/v1/repos/<owner>/<repo>/issues.repo+title+ returned issue number.coily ops gh issue create's flag shape so muscle memory transfers.Why
Closes the surface gap so the "file the issue first, then commit" workflow in AGENTS.md actually works for forgejo-only repos (i.e. almost all
coilysiren/*). Meta-improvement bias: bug surfaced during a normal task, fix the system that produced it.Context
Filed the parent ticket (coilysiren/cli-guard#11) via the curl+SSM dance described above, which is itself the symptom this issue exists to fix.