Stacked pull requests 🥞
Use stacked pull requests to break large code changes into a chain of smaller, dependent pull requests you can review and merge independently.
Recommended
About stacked pull requests
Break large code changes into a chain of smaller, dependent pull requests you can review and merge independently.
Quickstart for stacked pull requests
Install the gh stack extension in GitHub CLI and create your first set of stacked pull requests.
Stacked pull requests CLI commands
Find every command, flag, and exit code for the gh stack extension in GitHub CLI.
Articles
About stacked pull requests
Break large code changes into a chain of smaller, dependent pull requests you can review and merge independently.
Creating stacked pull requests
Create a stack of dependent pull requests using the gh stack extension in GitHub CLI or directly on GitHub.
Managing stacked pull requests
Restructure stacked pull requests, rebase their branches, and make changes to lower layers using GitHub CLI.
Merging stacked pull requests
Merge a stack from the bottom up, individually, or in contiguous groups.
Optimizing CI for stacked pull requests
Understand how GitHub Actions workflows run for a stack, access stack metadata in your workflows, and reduce redundant CI usage.
Pull requests
Reference documentation for GraphQL schema types in the Pull requests category.
Quickstart for stacked pull requests
Install the gh stack extension in GitHub CLI and create your first set of stacked pull requests.
REST API endpoints for pull requests
Use the REST API to interact with pull requests.
Reviewing stacked pull requests
Address review feedback on a pull request anywhere in a stack and cascade your changes through the rest of the stack.