Skip to content
Tech News
← Back to articles

Stacked PRs are now live on GitHub

read original more articles
Why This Matters

The introduction of stacked pull requests on GitHub streamlines the review process for large code changes by breaking them into smaller, manageable segments. This innovation enhances collaboration, speeds up development cycles, and maintains high code quality, benefiting both developers and consumers by enabling faster feature delivery and more reliable software updates.

Key Takeaways

Stacked pull requests break large changes into small, reviewable pull requests. They’re an ordered series of pull requests that each represent focused layers of your change. With stacks, you can independently review and check each pull request, then merge everything together in one click. No more opening a single large pull request that takes forever to review, or splitting work across multiple branches you have to keep manually rebasing.

“We’ve been using GitHub stacked PRs for Next.js for the past few months. It has helped us introduce smaller individual changes while shipping larger features, making it easier to review PRs. – Tim Neutkens, NextJS lead, Vercel”

With stacked pull requests, teams can:

Keep large changes moving by reviewing short, narrowly scoped pull requests in parallel.

by reviewing short, narrowly scoped pull requests in parallel. Maintain quality across every layer by using focused pull request reviews alongside existing branch protections to protect main .

by using focused pull request reviews alongside existing branch protections to protect . Merge one, some, or all by landing an entire stack altogether or individual layers one at a time.

And because stacked pull requests are built into GitHub, your existing reviews, checks, and merge requirements all work out of the box.

“The new Github Stacked PRs preview is incredible. Landing 5 stacked PRs directly to a merge queue all at once! A+++! This removes so much friction (and the gh cli tools + agent skill help a ton)” – John Resig, creator, jQuery

... continue reading