sync does not update PR base branch after lower PR is merged #59
Lenderson2
started this conversation in
Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After the bottom PR in a 3-branch stack was merged, running gh stack sync correctly:
However, it did not update the next PR's base branch on GitHub. The second PR still showed the merged branch as its base
instead of main. I had to manually run gh pr edit --base main to fix it.
Expected behavior: After sync detects a merged PR, it should update the base branch of the next PR in the stack to point
to trunk (or the next non-merged ancestor).
Stack structure:
main (trunk)
└── feature/step-1 → PR #1 (MERGED)
└── feature/step-2 → PR #2 (base still pointed to merged branch)
└── feature/step-3 → PR #3
Beta Was this translation helpful? Give feedback.
All reactions