Stacked pull requests

Updated Aug 02, 2026

The github-stacks skill covers GitHub's native stacked pull requests through the gh stack extension. Install it with gh extension install github/gh-stack; it requires GitHub CLI 2.90.0 or later, Git 2.20 or later, and stacked pull requests enabled for the repository. The core workflow is gh stack init, gh stack add, gh stack submit, then gh stack sync as the stack changes.

For automation, use non-interactive flags such as --auto and --yes because some commands require a TTY, inspect state with gh stack view --json, and use gh stack push instead of force-pushing stack branches manually. See the detailed skill and CLI reference.