Is there a way to atomically merge a stack of PRs ...
# how-do-i
u
Is there a way to atomically merge a stack of PRs into main? It seems that they occur one by one, with a few minutes passing in between (triggering a bunch of deploys, etc.)
p
Unfortunately we have to rebase in between each PR in the stack, so it's not immediate but it shouldn't take too long. Sometimes we see folks fold all the PRs into one PR and merge it that way, but not ideal for preserving the PRs/reviews/history
u
Ahh weird, it took a few minutes between each one when I tried merging a stack of 10 into main. Maybe it has to do with CI/CD? Is there a way to skip CI/CD until the end (CD especially)?
Hey, still seeing about ~2 mins between each merge in a stack. Is this expected? No problem either way haha. Sorry for the bother!
y
Hi - any better way than folding into one PR?
p
How long does your CI take normally? We currently don't have a way to specify the CI that runs during a stack merge, so if you have long-running CI normally then stack merges will take roughly (time to run CI)*(number of PRs in the stack) to merge. We've seen a few requests for this feature but not sure where it fits into the product timeline yet!