Repository navigation
Conversation
…rift - Add pre-PR rebase step: worktree branches are rebased onto origin/main before PR creation (AC-1, AC-2) - Add lockfile change detection: after rebase, if any lockfile changed (package-lock.json, pnpm-lock.yaml, bun.lock, yarn.lock), dependencies are automatically reinstalled (AC-3) - Handle rebase conflicts gracefully: on conflict, abort rebase, warn user, and continue with original branch state (AC-4) - Add --no-rebase flag to skip pre-PR rebase when manual handling preferred (AC-5) - Add tests for rebaseBeforePR and reinstallIfLockfileChanged functions Closes #295
… detection Two QA gaps fixed: AC-2: In chain mode, only the last issue now triggers rebaseBeforePR. Intermediate branches stay based on their predecessor, preserving the chain structure. Added isLastInChain parameter to runIssueWithLogging. AC-3: Lockfile change detection now uses ORIG_HEAD..HEAD instead of HEAD~1. After a multi-commit rebase, ORIG_HEAD captures all changes the rebase introduced (including lockfile updates from main that appeared in the base, not in replayed commits). Also replaced tautological lockfile detection test with one that verifies the correct git ref is used.
admarble
deleted the
feature/295-fix-rebase-worktrees-onto-main-before-pr-to-preven
branch
February 19, 2026 20:09
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
origin/mainfor worktree branches to prevent lockfile driftORIG_HEAD..HEAD) and reinstalls dependencies automatically--no-rebaseCLI flag for manual workflowsCloses #295
Supersedes #297 (closed due to branch conflict resolution)
Test plan