ops forgejo issue: add read + state verbs #70
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 forgejo issue createlanded in coilysiren/coily#69. The othergh issueshapes (list,view,close,reopen,edit,comment,delete) have direct forgejo API equivalents but no coily surface, so an agent still has to drop to curl + SSM for read or state-transition work.Scope
Add the following verbs under
coily ops forgejo issue:list --repo <owner/name> [--state open|closed|all] [--limit N]->GET /repos/{owner}/{repo}/issuesview --repo <owner/name> --number N->GET /repos/{owner}/{repo}/issues/{n}close --repo <owner/name> --number N->PATCH /repos/{owner}/{repo}/issues/{n}with{state: "closed"}reopen --repo <owner/name> --number N->PATCH /repos/{owner}/{repo}/issues/{n}with{state: "open"}edit --repo <owner/name> --number N [--title T] [--body-file PATH]->PATCH /repos/{owner}/{repo}/issues/{n}comment --repo <owner/name> --number N --body-file PATH->POST /repos/{owner}/{repo}/issues/{n}/commentsdelete --repo <owner/name> --number N->DELETE /repos/{owner}/{repo}/issues/{n}(forgejo requires admin; verb stays exposed but server enforces auth)Shape mirrors the existing
createverb: token from/forgejo/api-tokenSSM,--body-filefor any prose payload (lockdown metacharacter gate forbids inline markdown), slug validated viaparseForgejoRepoSlug, audit row stamps verb + flag values.Why
Closes the read + state surface so the AGENTS.md "Default TODO Destination" workflow doesn't need curl any more. First noun of the 5-noun sweep tracked in this thread (issue / pr / repo / release / label).