gh-stack
gh-stack copied to clipboard
Getting Every PR in this stack has already been merged, when there is a PR already
So I had branch 1 and branch 2 that created normally, and then branch3 was created while branch2 was in merge queue.
Then the git diff went weird but I fixed the merge conflicts, and thought maybe I'd try to gh stack unstack, but it didn't allow me because it was still part of the stack. Oh well, I continued on and tried making a PR for branch4 and got this.
⚠ Every PR in this stack has already been merged on GitHub
Adding to a fully merged stack isn't supported — starting a new stack for your 2 unmerged branches based on master
Pushing to origin...
PR #52141 for branch3
✓ Created PR #52148 for branch4
✓ Stack created on GitHub with 2 PRs (stack #52149)
✓ Pushed and synced 2 branches
Everything looks good on the UI though
Can you provide steps to reproduce this?
Try
$ gh stack init branch1
$ echo "1" > a.txt
$ git add a.txt && git commit -m "a"
$ gh stack add branch2
$ echo "2" > b.txt
$ git add b.txt && git commit -m "b"
$ gh stack submit
# now put things in merge queue
$ echo "3" > c.txt
$ git add c.txt && git commit -m "c"
$ gh stack submit # while PR 2 is in merge queue, what hits the edge case
$ echo "4' > d.txt
$ git add d.txt && git commit -m "d"
$ gh stack submit
$ gh stack unstack
# error message from above