fix(desktop): don't checkout main after merging PR from changes sidebar#1259
Conversation
…sidebar gh pr merge --delete-branch checks out the default branch locally after merging, causing the worktree to unexpectedly switch to main. Remove the --delete-branch flag and the deleteBranch parameter entirely so the local checkout stays on the current branch.
📝 WalkthroughWalkthroughTwo files are updated to remove the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary
--delete-branchflag fromgh pr mergein themergePRmutation — this was causingghto checkout main locally after merging, unexpectedly switching the worktree away from the feature branchdeleteBranchparameter from both the tRPC input schema and thePRButtoncall site since it's no longer usedTest plan
Summary by CodeRabbit