Skip to content

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

Merged
barrettruth merged 1 commit intomainfrom
feature/implicit-pr-completion
Apr 27, 2026
Merged

feat(cmd): align PR completion with branch state (#455)#461
barrettruth merged 1 commit intomainfrom
feature/implicit-pr-completion

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

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.

Keep implicit `:Forge pr` and `:Forge mr` completion aligned with the
resolvable branch PR state and the targeted repo merge capabilities.
@barrettruth barrettruth merged commit ecbf83f into main Apr 27, 2026
3 checks passed
@barrettruth barrettruth deleted the feature/implicit-pr-completion branch April 27, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant