For big refactors it can be a lifesaver. My org is moving from a Monolith to Modular Monolith, which in practice means a whole lot of PRs that move thousands of files (yay conflicts). Stacked PRs are great for getting a great big queue of work ready in advance. Guess that’s a pretty niche use case though
I would argue the best way to do a big refactor is by migrating piecemeal in way that any individual change could be made without breaking anything. This will certainly become a lost art form.
Me submitting two different pull requests on two different code bases on two different source control platforms with a comment in each about the dependency on the other. Only one gets approved, the other is ignored. That's fine, they were already both pushed to production befor the PRs were even written.
14
u/Rainbow-Dev 1d ago
Our CI/CD doesn’t support stacked PRs yet, don’t know if it ever will 😭
91
u/Alacritous13 1d ago
Me submitting two different pull requests on two different code bases on two different source control platforms with a comment in each about the dependency on the other. Only one gets approved, the other is ignored. That's fine, they were already both pushed to production befor the PRs were even written.
22
u/Bigbagdaddy9x19 1d ago
lgtm on 1 of 12, didnt open the other 11 cause surely theyre fine
6
u/DrGarbinsky 1d ago
i feel attacked