GitHub announced general availability for stacked pull requests on October 6. They let teams split a feature into dependent changes that can be reviewed separately. The approach is particularly relevant when a feature spans a data model, an API and a user interface.
The point is not to create more review requests. It is to let each reviewer understand a decision without reconstructing hundreds of lines of surrounding work.
What a pull request stack changes
The release includes preserving approvals when otherwise unchanged code is rebased with its stack, and signing replacement commits during stack rebases. GitHub explains these changes in its announcement.
Consider synchronised bookmarks. One pull request establishes storage, another adds endpoints and a third displays bookmarks. The second depends on the first; the third depends on both. Reviewing the API contract becomes a separate conversation from deciding where a button belongs.
The split should tell a story
A useful stack follows a progression the team can explain in a few sentences. An unhelpful stack divides files arbitrarily: tests in one request, types in another and behaviour elsewhere. Each step becomes difficult to understand on its own.
We recommend keeping tests alongside the behaviour they verify and describing which capabilities the preceding step provides. Someone opening the second review should understand its boundary immediately. A branch name alone does not communicate that relationship.
Treat migrations carefully. A schema change should remain compatible with the application already deployed. Grouping changes visually does not make them independently deployable, and merging a stack does not substitute for a rollout plan.
Conflicts still require coordination
Stacking does not eliminate conceptual conflicts. If the first review changes a numeric identifier into an opaque identifier, the upper layers may need substantive modifications. Reviewers should revisit affected behaviour even when the rest of the stack appears stable.
Assigning a stack owner helps prevent abandoned branches. That person coordinates fixes, checks test results and explains the merge order. Different reviewers can still handle different layers according to their expertise.
A useful first experiment
A feature with three distinct layers makes a better trial than a tiny bug fix. Track how long reviews wait, how often discussions lack context and which conflicts actually occur. Compare those observations with the team's usual process.
Two or three steps are often enough for a small team. A very deep stack introduces coordination costs and may recreate the bottleneck it was intended to remove. The objective is understandable review and reliable delivery, rather than the largest possible number of pull requests.
If reviewers cannot describe each step's purpose, adjust the split before requesting more approvals. A clear description is cheaper than several rounds of comments about the wrong part of a feature.
For a broader view of assisted review, our article on coding assistants and human review explains which decisions should remain explicit.
Cover visual: an illustration generated for this article, not an official service screenshot.




Join the discussion
Comments
Loading comments…