ops forgejo label: add CRUD verbs #71
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
The
gh labelverb set (create,list,edit,delete) has direct forgejo API equivalents but no coily surface. Agents that want to enforce a per-repo label taxonomy still have to drop to curl + SSM.Scope
Add the following under
coily ops forgejo label:create --repo <owner/name> --name N --color HEX [--description-file PATH]->POST /repos/{owner}/{repo}/labelslist --repo <owner/name>->GET /repos/{owner}/{repo}/labelsedit --repo <owner/name> --id ID [--name N] [--color HEX] [--description-file PATH]->PATCH /repos/{owner}/{repo}/labels/{id}delete --repo <owner/name> --id ID->DELETE /repos/{owner}/{repo}/labels/{id}editanddeletetake--id(forgejo's native key for labels) rather than--name.coily ops forgejo label listprints the id, name, and color so the operator can resolve a name -> id without a second tool. A name-based shorthand can come later if it earns its weight.Color is validated as a 6-hex-digit string (with or without leading
#). Description is taken from a file to keep multi-word values past the lockdown metacharacter gate.Why
Second noun of the 5-noun sweep, after
issue(coilysiren/coily#69, coilysiren/coily#70). Lowest-frequency surface, smallest verb count - good shake-out for the per-noun cadence.