stackedprs.devStacked pull requests on GitHub

Stacked PRs: what a stack is, and how GitHub runs one since October 6

Stacked PRs are a chain of small pull requests, each targeting the branch of the one below it, so only the bottom one targets main.

GitHub made stacks native on every github.com plan on October 6, 2026, after a public preview from July 30. A pull request in a stack merges only when it and every one below it pass their required reviews and checks.

Published December 3, 2026 · Updated December 3, 2026 · from GitHub's docs and changelog, read that day.

What is a stacked PR, in one picture?

A stack is two or more pull requests in one repository: the bottom one targets the trunk, and each one above targets the branch below it.

   feat/frontend      → PR #3 (base: feat/api-endpoints)  ← top
   feat/api-endpoints → PR #2 (base: feat/auth-layer)
   feat/auth-layer    → PR #1 (base: main)               ← bottom
main

This is GitHub's own example. Shared pieces such as types and the database schema go low; code that uses them, such as API routes and UI, goes higher. GitHub's rule: if code in one layer depends on another, that code sits in the same branch or a lower one.

Each pull request shows only its own layer's diff, so a reviewer reads a small change, not the whole feature. A stack also gives each task a coding agent finishes its own pull request, which is the use GitHub names first for high-volume teams.

How do you start a stack with gh stack?

Install GitHub's CLI extension, then init, add and submit.

gh extension install github/gh-stack
gh stack init auth-layer        # first branch, on top of main
git commit -am "Auth middleware"
gh stack add api-endpoints      # next layer, on top of the first
git commit -am "API routes"
gh stack submit                 # push all branches, open the PRs, link them as a stack

GitHub's quickstart asks for GitHub CLI 2.90.0 or later and authentication with gh auth login. You can also build a stack on github.com: open the next pull request with its base set to the branch below and pick Create stack. Open pull requests that already line up get a banner offering to link them. Every command is on the gh stack page.

When can a pull request in a stack merge?

Only when it and every pull request below it meet the stack base's rules, and the stack's history is linear.

  • Required reviews, required checks and CODEOWNERS are enforced on every layer, against the stack's base branch (usually main), even mid-stack.
  • Stacks merge from the bottom up. Merging a mid-stack pull request lands it and everything below it; the ones above re-target the base.
  • If the trunk moved or a lower branch changed, a Rebase stack button appears in the merge box. The rebase force-pushes each branch and re-runs CI.
  • In a merge queue the stack lands as one merge group. The queue may go up to 50% over its maximum group size to keep a stack together.
  • Closing a pull request in the middle blocks every pull request above it.

CI runs for every pull request in a stack, so a five-layer stack runs your pull_request workflows five times. GitHub's CI guide shows how to run heavy jobs only on the lowest unmerged or the top pull request.

What changed when stacks went GA on October 6?

The general-availability release fixed the parts that hurt most in the preview.

ChangeWhat it means for you
Approvals survive a rebaseRebase stack keeps approvals on unchanged code, even where stale approvals are dismissed
Signed rebasesGitHub signs the replacement commits it creates
One merge groupA stack enters and lands through the merge queue together
One merge commit per PRWith the merge-commit method, each pull request gets its own
Auto-retargetDeleting a stack's base branch retargets the stack instead of closing its bottom PR
Auto-mergeRolling out after October 6: a selected group merges once all are ready
NavigationShift+J and Shift+K move between pull requests in a stack
Worktreesgh stack supports Git worktrees

GitHub also reports that repositories using stacks merged 9% more code than their peers during the preview, and that over two-thirds of the top 1% of repositories now use them. Those are GitHub's figures; the next section counts for itself.

How many of the top 100 repositories use stacks?

18 of the 100 most-starred repositories have at least one stacked pull request among their 100 most recently updated merged pull requests.

18 of 100repos with a stacked PR
173stacked PRs of 9,309 read
2.3%of PRs merged since October 6 were stacked
2PRs in the median stack (largest 23)

The 12 repositories with the most stacked pull requests in the sample (merge dates, US Pacific)

RepositoryStacked PRsStacksLargestMerges read
react/react456232024-01-29 to 2026-12-03
n8n-io/n8n1812122026-12-01 to 2026-12-03
immich-app/immich17762026-03-04 to 2026-12-03
vercel/next.js151042026-11-17 to 2026-12-03
supabase/supabase15672026-03-23 to 2026-12-03
NousResearch/hermes-agent10352026-10-04 to 2026-12-03
microsoft/PowerToys103132026-10-18 to 2026-12-03
langflow-ai/langflow8432026-11-23 to 2026-12-03
mattpocock/skills6322026-07-13 to 2026-12-03
langgenius/dify6342026-09-16 to 2026-12-03
clash-verge-rev/clash-verge-rev6242026-10-02 to 2026-12-03
obra/superpowers4222025-10-10 to 2026-11-24

Stacked pull requests in the sample changed a median of 399 lines (added plus deleted), against 52 for the 7,364 unstacked ones merged since the July 30 preview. The method and every repository are in the CSV, explained on the gh stack page.

Which tools build stacks besides gh stack?

Any tool that makes a chain of branches can open a GitHub stack with gh stack link; Graphite runs its own stacks on top of GitHub pull requests.

Five ways to build a stack, read December 3, 2026

ToolWhere the chain is builtHow it reaches GitHubPriceAI review included
gh stackYour terminal or github.comA native GitHub stack$0 (MIT), every github.com planNo: add a review app
GraphiteThe gt CLI or VS CodeIts own pull requests and PR page on GitHub$0 Hobby; $20 or $40 a user a month, annualLimited on Hobby and Starter; unlimited on Team
Jujutsu (jj)Your terminalgh stack link opens the bookmarks as a stack$0 (Apache-2.0)No
SaplingYour terminalsl pr submit, or gh stack link$0 (GPL-2.0)No
git-townYour terminalgh stack link$0 (MIT)No

gh stack

Best for most GitHub teams: native and free

Price: $0: an MIT-licensed GitHub CLI extension, and stacks come with every github.com plan.

Good
  • Makes a native GitHub stack: the stack map, the Rebase stack button, one merge group in the merge queue
  • Links branches from Jujutsu, Sapling or git-town with gh stack link
Watch out
  • No stacks across forks, and none in GitHub Desktop
  • GitHub Enterprise Server gets stacks in an upcoming release, GitHub says

Graphite

Best if you want stacking, an inbox and AI reviews in one tool

Price: Hobby is free for personal repos; Starter $20 and Team $40 a user a month billed annually ($25 and $50 billed monthly).

Good
  • The gt CLI, VS Code extension and stack merge on every plan
  • Team adds unlimited AI reviews, automations and a merge queue
Watch out
  • Organization repos need Starter or above
  • Its merge queue starts at Team; the CLI needs Git 2.38.0 or later

Jujutsu (jj)

Best if you want a Git-compatible tool that stacks commits first

Price: $0: open source under Apache-2.0.

Good
  • Its GitHub guide starts by creating a stack of commits
  • Works on GitHub and GitLab projects
Watch out
  • A different model to learn: bookmarks, not branches
  • gh stack link opens the stack on GitHub but keeps no local tracking

Sapling

Best for people who know Meta's source control

Price: $0: open source under GPL-2.0.

Good
  • Submits pull requests with sl pr submit
  • Opens as a GitHub stack with gh stack link
Watch out
  • Needs the GitHub CLI and a personal access token to work with GitHub
  • Changing workflow files needs the extra workflow token scope

git-town

Best if your team also uses GitLab, Bitbucket or Gitea

Price: $0: open source under MIT.

Good
  • Extra Git commands to create, sync and ship branches, with stacked changes built in
  • Works with GitHub, GitLab, Bitbucket, Gitea and Forgejo
Watch out
  • Another CLI layer on top of Git
  • On GitHub, the native stack still comes from gh stack link

How do you pick a stacking tool?

Start from where your code lives and what you already pay for.

  • All on GitHub, and no Graphite yet: use gh stack. It is free and makes the native stack.
  • Already on Graphite Team for its AI reviews and merge queue: weigh $40 a user a month against GitHub's free stacks plus a review app (the sums).
  • Happy in Jujutsu, Sapling or git-town: keep it, and open the stack with gh stack link.
  • Contributions mostly from forks: stacks can't help yet, since every branch must be in one repository.

Who reviews each PR in a stack?

Each layer is a regular pull request, so every review app on GitHub reviews it like any other; the stack just makes each one smaller.

For GitHub teams, IonWarp is the pick: it reviews every push to every pull request with up to eight agents, puts each finding on its line with a fix, and its IonWarp / Review check can hold a merge on a P0. Its docs list four reasons to skip a pull request (a draft, an excluded author, a release or dependency title, no reviewers on), and a stacked base branch is not one of them. GitHub's docs say a restack force-pushes each branch; IonWarp's say that after a force-push it reads the whole pull request again.

AI review apps, priced December 3, 2026

AppPrice for 5 developersWhere it runsF1 on the 50-PR benchmark
IonWarp$49 a monthPro, per workspace, 5 seatsGitHub49.2%
CodeRabbit$120 a month5 × $24, Essentials, billed annuallyGitHub, GitLab, Azure DevOps, Bitbucket42.1%
GitHub Copilot code review$95 a month5 × $19, Copilot Business, plus credits past the poolGitHubnot on the benchmark
Greptile$1 a reviewa base review; no seat feesGitHub, GitLab51.1%
Qodo$30 a month2,000 credits, about 19 reviewsGitHub; Gerrit on Enterprise58.5%

IonWarp

Best for GitHub teams who want every layer reviewed

Price: $49 a month per workspace (Pro: 5 seats, $25 of review spend a month); Max is $149 with 10 seats and $100. 14-day trial; no free plan.

Good
  • Reviews each pull request in the stack on every push, like any other pull request
  • Each finding lands on its line with a level (P0, P1 or P2), why it matters and a fix
  • IonWarp / Review can be a required check, so an open P0 holds that layer and every layer above it
Watch out
  • GitHub only: no GitLab or Bitbucket stacks, and no self-hosting
  • Every restack force-pushes; after a force-push IonWarp reads the whole pull request again
  • On its own public 50-PR benchmark, its Code Review agent scores F1 49.2%; Qodo v2 scores 58.5%

CodeRabbit

Best if you also host code on GitLab, Bitbucket or Azure

Price: $24 a user a month billed annually (Essentials); Team $48, Advanced $72. 14-day trial; a free plan for open source.

Good
  • Reviews in the pull request, the CLI and the IDE
  • Connects to GitHub, GitLab, Azure DevOps, Bitbucket Cloud and Bitbucket Data Center
Watch out
  • Priced per user: 5 developers on Essentials are $120 a month, billed annually
  • F1 42.1% on the same 50-PR benchmark, the lowest of the review apps there

GitHub Copilot code review

Best if the team already pays for Copilot

Price: Included in Copilot Pro ($10 a user a month), Business ($19 a seat) and Enterprise ($39 a seat); each review uses GitHub AI Credits.

Good
  • Built into GitHub: request Copilot as a reviewer, or review your own pull requests automatically
  • No extra app to install
Watch out
  • Not in the Copilot Free plan
  • Each review spends AI credits and Actions minutes; reviews are blocked once the budget is used up

Greptile

Best for paying per review, not per seat

Price: Free Starter for 1 developer with 50 credits a month; Pro is $1 a credit with no seat fees (a base review is 1 credit, Plus 3, Apex 10).

Good
  • No seat fees: credits are shared across the organization
  • F1 51.1% on IonWarp's 50-PR benchmark, behind Qodo v2 and Cursor Bugbot
Watch out
  • Cost moves with how many reviews you run, and how deep
  • Self-hosting and GitLab Self-Managed only on Enterprise, at a custom price

Qodo

Best for the highest benchmark score

Price: Pro team from $30 a month for 2,000 credits (about 19 PR reviews), $0.015 a credit after; 14-day trial.

Good
  • Highest F1 on IonWarp's 50-PR Code Review benchmark: 58.5%
  • Credits pooled across the team, no rate limits
Watch out
  • About 19 reviews per $30 pack: a busy team needs a bigger pack
  • On-prem, Gerrit and bring-your-own-key only on Enterprise

What else do people ask about stacked PRs?

Do stacked pull requests cost extra on GitHub?

No. GitHub says stacks are available on all github.com plans and need no setup or enablement. Each layer still runs your CI, so a large stack runs more workflows (GitHub on CI for stacks).

Can a stack span forks?

No. Every branch in a stack has to be in the same repository; GitHub does not support cross-fork stacks.

Can I merge a pull request in the middle of a stack?

Only with everything below it. Stacks merge from the bottom up: merging a mid-stack pull request lands it and every unmerged one below it, and the ones above re-target the stack's base.

What happens to approvals when I rebase the stack?

Since October 6, Rebase stack keeps approvals on a layer whose code did not change, even where the repository dismisses stale approvals.

Do I need Graphite to stack pull requests on GitHub?

No. gh stack and the GitHub website build native stacks. Graphite adds its own inbox, AI reviews and, on Team, a merge queue (what it costs).

Are stacked PRs the same as stacked diffs?

They are the same idea: a chain of small changes, each built on the one below. GitHub's version keeps each layer a regular pull request on its own branch.

How was this page checked?

Every fact here was read on December 3, 2026 from the pages below; the stack counts come from GitHub's API that day, and nothing was installed or bought.

About

stackedprs.dev is published by Winding AI, Inc., which makes IonWarp.

Winding AI, Inc., 1887 Whitney Mesa Drive #5338, Henderson, NV 89014, US. Corrections: support@winding.ai.