Add forge pr close command #59
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?
forge has no way to close a pull request. I had to use curl against the Forgejo API directly to close a PR today.
Implement
forge pr closematchinggh pr closeflags as closely as possible:Flags:
-c, --comment <text>: leave a closing comment-d, --delete-branch: delete the remote branch after close-R, --repo <owner/repo>: target repo (existing global flag)ghalso accepts a branch name to find the PR — support that via the existingpr find-by-headlookup.Follow the same patterns as
forge issue closefor argument parsing, URL-to-number extraction, and help text.