Repository navigation
Let open pull requests follow their fork head and let remixes sync with the original - #86
Merged
Merged
Conversation
…hes, and cache merge bases
…deleted target branch, and let older clients merge the prepared head
…ock, let editors complete merges, and show the live base on GET
… free of history work, and report pull write failures
… target branch, fail smoke on false checks
…l's commits, refresh stale merge bases
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /v1/projects/:id/pulls/:index,/diff,/merge, and pull-merge uploads resolve the live head of the remix'sheadBranch(falling back to the single branch for pre-branch pulls or the recordedheadCommitwhen ambiguous/deleted) instead of freezing on the opening commit. Merging records the head actually merged.baseBranchhead and the remix's live head (with a validated OID-keyed merge-base cache for diffs, skipping truncated walks) so upstream changes synced into the remix no longer pollute the PR diff.?pull=<index>&pullTarget=<id>reads are restricted to commits belonging to the pull, andworkspace.mwp?pull=<index>requires a signed-in target editor or remix owner.GET /pulls/:indexreportsbaseBranchMissing;/mergeand pull-merge uploads enforce source visibility,target_branch_changed/target_branch_missing,uncommitted_changes(while still allowing already-merged pulls to close),head_changed,pull_head_changed(checkingmergeSourceHeadorpreparedSourceHead),pull_not_open, andpull_not_closed, closing pulls under the save + pull locks.POST /v1/projects/:id/remix/syncand uploadsyncHead): Prepares a three-way merge from the original project's live head into a remix (this remix/originalconflict labels, single-fileproject.sb3conflict fallback,alreadyMerged/fastForwardflags) and commits a two-parent merge commit (Merge changes from <original title>) on upload withsyncHead,expectedHead, andmergeTree. Re-checks original visibility and head after the upload body arrives and refuses dirty remixes (uncommitted_changes), moved heads (head_changed/original_changed), missing history (sync_history_unavailable), and unrelated histories (sync_unavailable).Verification
go test ./...innative/gitinspectionosl testacross the full suite (66/66 passing, including newpull-metadata,pulls,remix-sync, andproject-upload-policytests)python3 scripts/check_conventions.pyandosl lsp check main.oslscripts/e2e_smoke.pyagainst a compiledHEADbinary (400 steps, 0 server errors, 0 failed checks)scratch-guiremix-syncbranch