fix(pr): reconcile jj create with a push-auto-created branch PR (no dup) #186
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!186
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/pr-create-dedup"
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?
What
forge pr createno longer creates a duplicate when a push already auto-created a PR on the branch (item #3 of the forge-CLI DX field report).Why
A pushed jj change auto-creates a PR on its branch (identity
branch_ref), butPOST /api/fg/prsdeduped only within the same identity kind (jj_change_id) — soforge pr createmissed it and made a second PR.Change
forge pr createsends the current jj bookmark (branch).branch_refchangeset — updates it and attaches thejj_change_idso future creates dedup by change id — instead of creating a duplicate. New changesets also recordbranch_ref, so either order (push-then-create or create-then-push) dedups.Verification
Go
build/vetgreen; prs route test 3/3 incl. a new jj-reconcile case; changed TS files typecheck clean. The git path is unchanged (dedup is jj-scoped).Field report: item #3.