fix(pr): use fetched metadata in edit compose #203
No reviewers
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!203
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/pr-edit-metadata-head-base"
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?
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.