5 hours ago
- Stacked pull requests break large changes into smaller, reviewable PRs that can be merged together in one click.
- They allow parallel review of narrow changes while maintaining quality through focused reviews and branch protections.
- Users can merge the entire stack or individual layers one at a time.
- GitHub’s built-in features like reviews, checks, and merge requirements work seamlessly with stacked PRs.
- The CLI extension (gh-stack) enables quick creation and management of stacks from terminal or github.com.
- Each PR in a stack shows a specific layer’s diff, with a stack map for context, enabling parallel independent reviews.
- Merging the latest ready PR lands it and all unmerged layers below in one operation, with automatic rebasing for incomplete stacks.
- Stacked PRs address the bottleneck of large PRs, improving review speed and accuracy as noted by users at TED, WHOOP, and other organizations.