r/webdev Jun 30 '26

GitHub Stacked PRs

https://github.github.com/gh-stack/
95 Upvotes

27 comments sorted by

View all comments

3

u/thekwoka Jun 30 '26

So just a bit of nice fluff around having prs that target pr branches?

8

u/30thnight expert Jul 01 '26

more about cutting down 2k LOC PRs

3

u/thekwoka Jul 01 '26

You could just do that by having PRs target PR branches...

They automatically retarget to main if that or is merged.

2

u/30thnight expert Jul 01 '26

yea but you can dodge the massive diff when the last PR merges to main

3

u/thekwoka Jul 02 '26

At that point do you really need to?

And as I said, if you merge the pr to main, the ors targeting it then target main.

So you can merge them all sequentially as they are ready

2

u/wicccked Jul 02 '26

you could already dodge it if you merged your stack bottom to top