feat(cmd): align PR completion with branch state (#455) #461
No reviewers
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!461
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/implicit-pr-completion"
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
Implicit
:Forge pr/:Forge mrcompletion andmethod=suggestions were static, so they could offer verbs or merge methods that do not match the current branch PR state or targeted repo.Solution
Resolve completion targets through the shared current/branch PR helpers, filter stateful verbs through shared availability rules, and restrict
method=values to the targeted repo's supported merge methods with specs covering open, draft, closed, and ambiguous cases.