cmd: add implicit current-PR Ex commands, completion, and specs #391
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#391
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?
Part of #389.
Depends on #390.
Suggested order: 2.
Problem
The Ex surface documents
family verbcommands, but there is no first-class current-PR command model even though the common workflows are branch-relative from the editor. That makes users discover current-PR behavior only indirectly through unrelated commands.Proposed solution
Add implicit current-PR Ex commands:
:Forge pr:Forge review:Forge pr ciKeep
:Forge cias current-branch CI history.Reuse the new resolver layer so implicit forms operate on the unique PR for the current branch context when resolution succeeds.
Scope
lua/forge/cmd.luaspec/cmd_spec.luaandspec/command_spec.luaAcceptance criteria
:Forge pr,:Forge review, and:Forge pr ciparse and dispatch successfully when current-PR resolution is unambiguous:Forge cistill opens current-branch CI history, not PR checksrepo=/head=disambiguationOut of scope
:Forge pr createsemantics