fix: only repoint when target repo is explicitly known, propagate target via target_pr_repo#12
Open
dezren39 wants to merge 7 commits into
Open
fix: only repoint when target repo is explicitly known, propagate target via target_pr_repo#12dezren39 wants to merge 7 commits into
dezren39 wants to merge 7 commits into
Conversation
…po PR repointing Adds no_repoint boolean to StackState and BranchMeta with effective_no_repoint() resolution helper. Wired into config get/set (global and branch attrs). Resolution: per-branch > global > false.
…ct children on merge cleanup
…flag on sync, and close_pr_in_repo helper
…g, safe state mutation on close
…ldren with existing PRs
…epo for PR lookup
…get via target_pr_repo Two-part fix for incorrect auto-repoint after parent merge: 1. push.rs: Only trigger repoint when both current and target repos are Some and differ. The (Some, None) case no longer repoints, preventing spurious close-and-recreate when the target repo is unknown. 2. sync.rs: When cleaning up a merged parent, set target_pr_repo on children that already have PRs (instead of overwriting pr_repo). This preserves the actual PR location while signaling push where to repoint. 3. push.rs: Clear target_pr_repo after successful repoint to avoid stale hints. 4. Test helpers: Add target_pr_repo: None to all BranchMeta struct literals.
This was referenced Apr 13, 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.
Part of a stack managed by
ez.Stack (this PR is 7 of 10):