ops forgejo pr: add PR lifecycle verbs #74
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 prverb set has direct forgejo API equivalents but no coily surface. Last noun in the 5-noun sweep.Scope
Add the following under
coily ops forgejo pr:create --repo <owner/name> --head <branch> --base <branch> --title T [--body-file PATH]->POST /repos/{owner}/{repo}/pullslist --repo <owner/name> [--state open|closed|all] [--limit N]->GET /repos/{owner}/{repo}/pullsview --repo <owner/name> --number N->GET /repos/{owner}/{repo}/pulls/{n}close --repo <owner/name> --number N->PATCH /repos/{owner}/{repo}/pulls/{n}with{state: "closed"}reopen --repo <owner/name> --number N->PATCH /repos/{owner}/{repo}/pulls/{n}with{state: "open"}merge --repo <owner/name> --number N [--method merge|rebase|squash] [--title T] [--message-file PATH]->POST /repos/{owner}/{repo}/pulls/{n}/mergecomment --repo <owner/name> --number N --body-file PATH->POST /repos/{owner}/{repo}/issues/{n}/comments(forgejo treats PR conversation comments via the issue endpoint)review --repo <owner/name> --number N --event APPROVE|REQUEST_CHANGES|COMMENT [--body-file PATH]->POST /repos/{owner}/{repo}/pulls/{n}/reviewsInline review comments (the per-file/line variants) are intentionally out of scope - they need a richer payload shape and earn their own follow-up.
Why
Closes the loop on the 5-noun sweep (issue, label, release, repo, pr). PR work is the last surface that should still need to drop to curl + SSM.