feat(cmd): align PR completion with branch state (#455) #461

Merged
barrettruth merged 1 commit from feature/implicit-pr-completion into main 2026-04-27 18:39:59 +00:00
barrettruth commented 2026-04-27 18:38:36 +00:00

Problem

Implicit :Forge pr/:Forge mr completion and method= 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.

## Problem Implicit `:Forge pr`/`:Forge mr` completion and `method=` 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.
Sign in to join this conversation.
No description provided.