DEV Community

Atheer
Atheer

Posted on

## Stacked Pull Requests are Live on GitHub

Stacked Pull Requests are Live on GitHub

GitHub has added stacked pull requests in public preview. A stacked PR lets a team break a large change into small, dependent PRs. Each PR builds on the one before it. This keeps code reviews focused and reduces merge conflicts. The feature works in the web UI and the gh CLI.

# Example: create a stack of three PRs
gh pr create --title Feature A --base main
gh pr create --title Feature B --base feature-a
gh pr create --title Feature C --base feature-b
Enter fullscreen mode Exit fullscreen mode

When a lower PR in the stack is updated, GitHub automatically updates the dependent PRs. Reviewers can see the full stack and approve it as a whole or piece by piece. This streamlines large feature development and simplifies release planning.

Learn more at the official announcement: https://github.blog/changelog/2026-07-30-stacked-pull-requests-are-now-in-public-preview/.

Top comments (0)