GitHub Stacked Pull Requests Now in Public Preview With New CLI Tool
GitHub has launched stacked pull requests as a public preview feature, allowing developers to break large changes into a chain of smaller, reviewable PRs that each target the previous branch. A developer tested the feature on a personal portfolio repository, using the new official CLI extension 'gh-stack' to manage the workflow. The tool requires GitHub CLI version 2.90.0 or higher and automates branch retargeting when a lower PR in the stack is merged. The developer split work into three layers — scaffold, content, and closing — demonstrating how the approach encourages cleaner dependency thinking even on solo projects. Notable limitations include no support for cross-fork stacks, meaning all branches must live within the same repository.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in