ops forgejo release: add CRUD verbs #72
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 releaseverb set has direct forgejo API equivalents but no coily surface.Scope
Add the following under
coily ops forgejo release:create --repo <owner/name> --tag <tag> [--name N] [--body-file PATH] [--draft] [--prerelease]->POST /repos/{owner}/{repo}/releaseslist --repo <owner/name> [--limit N]->GET /repos/{owner}/{repo}/releasesview --repo <owner/name> --id ID->GET /repos/{owner}/{repo}/releases/{id}edit --repo <owner/name> --id ID [--name N] [--body-file PATH] [--draft=...] [--prerelease=...]->PATCH /repos/{owner}/{repo}/releases/{id}delete --repo <owner/name> --id ID->DELETE /repos/{owner}/{repo}/releases/{id}Out of scope (follow-up)
upload-asset->POST /repos/{owner}/{repo}/releases/{id}/assets. Different mechanism (multipart/form-data with a file part) than the JSON CRUD verbs - worth a separate ticket so the asset-upload surface gets its own review.Why
Third noun of the 5-noun sweep. Releases are the natural next surface after issues/labels for repo-level lifecycle automation.