Skip to main content

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.

Articles

Create pull requests

About stacked pull requests

Break large code changes into a chain of smaller, dependent pull requests you can review and merge independently.

Create pull requests

Creating stacked pull requests

Create a stack of dependent pull requests using the gh stack extension in GitHub CLI or directly on GitHub.

Create pull requests

Managing stacked pull requests

Restructure stacked pull requests, rebase their branches, and make changes to lower layers using GitHub CLI.

Merge and close pull requests

Merging stacked pull requests

Merge a stack from the bottom up, individually, or in contiguous groups.

Merge and close pull requests

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.

Create pull requests

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.

Review 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.

Showing 1-9 of 17