cmd: let implicit pr reopen target the current branch's closed PR #454
Labels
No labels
bug
documentation
duplicate
enhancement
fugitive
good first issue
help wanted
invalid
question
v0.1.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/forge.nvim#454
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
reopenis the only obvious branch-relative PR toggle action that still cannot participate in the implicit command model.Today:
open/opened -> close,closed -> reopen, andmerged -> nil:Forge pr reopenstill requires an explicit PR numberThat makes the branch-relative workflow feel inconsistent. If I close a PR and remain on the branch, reopening that same PR still requires me to look up or remember the PR number.
Proposed solution
Allow
:Forge pr reopenwith omitted{num}to resolve the unique closed PR for the current branch.This should be implemented on top of a broader branch-relative PR resolver rather than by broadening the existing open-only
current_pr()semantics.Behavioral expectations:
repo=/head=disambiguation{num}behavior unchangedAcceptance criteria
:Forge pr reopenaccepts omitted{num}when the current branch resolves to a unique closed PRrepo=/head=disambiguation{num}reopen remains unchangedRelated
Tracking note: I’m implementing #453 first as the shared resolver/backend layer. This issue should then consume it with a closed-only implicit branch-relative resolver for
:Forge pr reopen, while still rejecting merged PRs.