api: add high-level implicit-ref Lua entrypoints #393
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#393
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: 4.
Problem
The documented Lua surface leans on low-level
forge.opshelpers that mostly expect already-resolved IDs and scopes. That diverges from the canonical Ex model and forces integrations to reconstruct internal targeting details for common workflows.Proposed solution
Add a high-level Lua surface that matches the new Ex semantics and reuses the shared resolver layer.
Suggested canonical entrypoints:
forge.pr(opts?)forge.review(opts?)forge.pr_ci(opts?)forge.ci(opts?)forge.current_pr(opts?)These should support the common implicit case with no arguments and explicit disambiguation through address-style options where needed.
Scope
require(forge)Acceptance criteria
{ num, scope }tablesforge.ci()remains current-branch CI, whileforge.pr_ci()means PR checksOut of scope