ops forgejo repo: add repo-level CRUD verbs #73
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 repoverb set has direct forgejo API equivalents but no coily surface.Scope
Add the following under
coily ops forgejo repo:list [--query Q] [--limit N]->GET /repos/search(text-match on name; an owner-name shortcut can land later if it earns its weight)view --repo <owner/name>->GET /repos/{owner}/{repo}edit --repo <owner/name> [--description-file PATH] [--private=...] [--has-issues=...] [--has-wiki=...]->PATCH /repos/{owner}/{repo}fork --repo <owner/name> [--organization NAME]->POST /repos/{owner}/{repo}/forksarchive --repo <owner/name>->PATCH /repos/{owner}/{repo}with{archived: true}(shortcut for the gh-equivalent flow)delete --repo <owner/name>->DELETE /repos/{owner}/{repo}(admin-gated server-side)Booleans on
edituse cli/v3IsSetsemantics so "leave alone" and "set to false" stay distinguishable.--description-filerather than inline--descriptionfor the lockdown gate.Why
Fourth noun of the 5-noun sweep. Repo-level CRUD is the natural completion of the issue/label/release surface for cross-repo lifecycle automation.