fix(pr): use fetched metadata in edit compose #203

Merged
barrettruth merged 1 commit from fix/pr-edit-metadata-head-base into main 2026-04-12 21:50:16 +00:00
barrettruth commented 2026-04-12 21:50:04 +00:00

Problem

Direct :Forge pr edit <num> could render compose metadata from the current local checkout instead of the PR being edited, which made the header misleading on a different branch or detached HEAD.

Solution

Parse PR head/base metadata from the fetched PR details, use that data in the edit compose header, suppress the local diff-stat block when the checked-out branch does not match the PR head, and add focused regressions for both the edit flow and compose rendering.

## Problem Direct `:Forge pr edit <num>` could render compose metadata from the current local checkout instead of the PR being edited, which made the header misleading on a different branch or detached HEAD. ## Solution Parse PR head/base metadata from the fetched PR details, use that data in the edit compose header, suppress the local diff-stat block when the checked-out branch does not match the PR head, and add focused regressions for both the edit flow and compose rendering.
Sign in to join this conversation.
No description provided.