forgejo verbs: add/remove labels on an issue (with canonical-path resolution) #159
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?
Gap
coily ops forgejo issuecovers create/list/view/edit/comment/close/reopen/delete, andcoily ops forgejo labelcovers label-definition CRUD (create labels). But there is no verb to add/remove a label on an issue. The 2026-05-30 priority-labeling work (P0-P3 across ~730 issues) had to bypass coily and hit the API directly because of this.Wanted verbs
coily ops forgejo issue label add --repo <owner/name> --index <N> --label <name>(accept repeat--label)coily ops forgejo issue label remove --repo <owner/name> --index <N> --label <name>... label set ...to replace the full setAccept label by name (resolve to id internally) so callers don't juggle numeric ids.
Must-have: canonical-path resolution
These are mutating verbs, so they hit the org-split redirect bug head-on (see #549): a write to a moved repo's old
coilysiren/*path 301-redirects, the body is dropped, and it silently no-ops with a 200. The new verbs (and ideally all mutating forgejo verbs) must resolve the repo's canonicalfull_nameviaGET /repos/{owner}/{name}before issuing the write, or refuse to follow a 301 on a non-GET and surface a loud "repo moved to X" error.Why
Per-issue labeling is now a routine backlog operation (priority tiers,
icebox). Routing it through coily gives the audit row and the canonical-path safety that raw curl does not. See thekai-issue-prioritizationskill.