Stacks
Break large changes into small, reviewable pull requests. One branch, many PRs.
AI can write 1,000 lines of code in minutes, but nobody wants to review a 1,000-line pull request. Reviewers skim instead of reading, bugs slip through, and merges stall for days.
The Problem: One Branch = One PR
Section titled The Problem: One Branch = One PRGitHub’s pull request model ties every branch to a single PR. As you add commits, the PR grows, and so does the review burden.
Developers face a bad choice: ship one giant PR that no one can review thoroughly, or manually manage a chain of dependent branches and rebase each one whenever the base changes. Git has the tools to split work into atomic commits. GitHub just doesn’t expose them as separate, reviewable units.
The Solution: One Branch, Many PRs
Section titled The Solution: One Branch, Many PRsMergify Stacks maps each commit on your branch to its own pull request, automatically chained in dependency order.
You work on a single local branch using standard Git: commits, rebase, amend. When you push, Stacks creates a separate PR for each commit, linked together so reviewers see the logical progression of your work.
- Small, focused PRs that reviewers actually read
- One local branch (no juggling N branches for N PRs)
- Automatic PR chaining with dependency tracking
- Smart updates that only touch PRs that changed
- Standard Git, no new commands to learn
- Complements Merge Queue for safe, fast landing
Get Started in 30 Seconds
Section titled Get Started in 30 Secondsuv tool install mergify-climergify stack setupmergify stack pushThree commands to go from a branch with commits to a stack of reviewable PRs on GitHub. See the setup guide for details.
Learn More
Section titled Learn MoreWas this page helpful?
Thanks for your feedback!