GitHub has launched first-class support for stacked pull requests via the gh stack CLI and integrated GitHub UI. Stacked PRs let developers break large changes into a chain of small, focused PRs that build on each other, each independently reviewable. The tooling handles branch creation, cascading rebases, and PR creation with correct base branches. GitHub's PR UI shows a stack map for navigation, enforces branch protection rules against the final target branch, and runs CI for every PR as if targeting the final branch. Merging can be done all at once or partially, with automatic rebase of remaining PRs after each merge. An AI agent integration is also available via npx skills add github/gh-stack.

2m read timeFrom github.github.com
Post cover image
Table of contents
Why Stacked PRs?Arranging PRs in a StackHow It WorksGet Started

Sort: