resolver: add current-PR resolution from head context #390
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#390
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.
Problem
Current PR lookup already exists in backend
pr_for_branch_cmd(...)implementations, but it is only used ad hoc from the PR creation flow. Ex commands, picker actions, and Lua APIs all express targeting differently, so there is no single semantic resolver for "the PR for this branch context".Proposed solution
Add a shared resolver layer that can:
{ branch, scope }repo=/head=inputSuggested public/internal shape:
require(forge).current_pr(opts?)forge.resolve.current_pr(opts?)Scope
Acceptance criteria
repo=orhead=Out of scope