fix(create): honor resolved head/base targets #205

Merged
barrettruth merged 1 commit from fix/web-create-followup into main 2026-04-12 22:25:34 +00:00
barrettruth commented 2026-04-12 22:25:02 +00:00

Problem

PR create flows mixed branch-relative and origin-relative behavior. :Forge pr create advertised head= and base= modifiers but dropped them at dispatch time, web create did not consistently target the resolved head/base pair, and GitHub issue web create still depended on the non-interactive CLI path.

Solution

Wire head= and base= through the PR create command path and use the resolved head/base pair consistently for preflight, diffing, push, compose, and web opening. Pass explicit head/base information into GitHub and GitLab web create flows, make Codeberg compare URLs respect the resolved pair, route GitHub issue web create through the browser URL path, and document that only PR create commands are branch-relative while other PR verbs remain PR-relative.

## Problem PR create flows mixed branch-relative and origin-relative behavior. `:Forge pr create` advertised `head=` and `base=` modifiers but dropped them at dispatch time, web create did not consistently target the resolved head/base pair, and GitHub issue web create still depended on the non-interactive CLI path. ## Solution Wire `head=` and `base=` through the PR create command path and use the resolved head/base pair consistently for preflight, diffing, push, compose, and web opening. Pass explicit head/base information into GitHub and GitLab web create flows, make Codeberg compare URLs respect the resolved pair, route GitHub issue web create through the browser URL path, and document that only PR create commands are branch-relative while other PR verbs remain PR-relative.
Sign in to join this conversation.
No description provided.