Queue to Main

Guide · branch protection · facts checked 2026-10-27

Stop clicking “Update branch”: out-of-date pull requests on GitHub Team

Short answer: the prompt to update a branch comes from the “Require branches to be up to date before merging” setting (GitHub calls it strict status checks). With it on, every merge to main makes every other open PR out of date, so someone has to update it and wait for CI again. You can turn the setting off (fewer CI runs, but main can break), script the updates, let a bot like Kodiak do them, or use a merge queue, which GitHub says gives the same guarantee without authors updating their branches. On a private repo, GitHub’s own merge queue needs Enterprise Cloud; on Team you need a third-party app for that.

Disclosure up front: I built Queue to Main, one of the options on this page. Facts about GitHub and Kodiak come from their own docs, read on 2026-10-27; links are in Sources.

Why GitHub keeps asking you to update the branch

Required status checks come in two modes, per GitHub’s docs on protected branches:

Strict mode exists for a good reason: two PRs can each pass CI and still break main together. The cost is the loop you are probably here about: PR A merges, PR B is now behind, B gets updated (with the Update branch button, or “Update with rebase”), CI runs again, and if C merged in the meantime, B is behind again.

Two related details from GitHub’s docs: by default the update button only shows when the base branch requires up-to-date branches (a repository setting, “Always suggest updating pull request branches”, shows it on every PR that is behind), and if your rule dismisses stale approvals, updating the branch can dismiss the approval, so the PR needs a review again.

How the work grows with open PRs

Kodiak’s documentation spells out the arithmetic for its “update every PR whenever it’s behind” option: with N open PRs against one target, keeping all of them current costs at least N(N−1)/2 branch updates, against at least N−1 when you only update the PR that is about to merge. With 6 PRs waiting that is 15 updates (and 15 extra CI runs) instead of 5. Updating only the next PR in line is the cheap order, and it is what a queue does for you.

Five ways out, compared

OptionPrivate repos on GitHub Team?CostEach merge tested against the latest base?Who does the updating?
1. Turn off “Require branches to be up to date” (loose checks)YesFree; fewer CI runsNo: changes that pass alone can break main togetherNobody
2. Strict checks + GitHub auto-mergeYes (auto-merge is on Pro, Team and Enterprise for private repos)FreeYesStill a person: auto-merge merges once requirements pass, and GitHub’s docs don’t describe it updating the branch
3. Script it: gh pr update-branch or an Action on every push to mainYesFree; your CI minutes; you maintain the scriptYesThe script; updating every open PR on every merge is the N(N−1)/2 pattern above
4. Kodiak (GitHub App)Yes$4.99 per active user per month on private repos (see our bors-ng and Kodiak page)Yes; Kodiak only updates branches when strict mode is onKodiak: without update.always, the PRs it is merging (the N−1 case); with it, every labelled PR that falls behind
5. A merge queueGitHub’s own: only with Enterprise Cloud for private repos. Third-party apps: yesMergify, Trunk, Aviator, Graphite: per developer (dated comparison). Queue to Main: $49/month per organization, up to 25 active contributors, 14-day trial; free to use until paid plans openYes: each PR is tested on the latest base before it mergesThe queue; GitHub says its merge queue doesn’t require a PR author to update their branch and wait for checks before merging

Notes, 2026-10-27: availability from GitHub Docs (protected branches, auto-merge, merge queue). Kodiak behaviour from its configuration reference; its price from its billing docs. Queue to Main builds a test branch from the latest base plus the PR, runs your CI on it, and merges the PR only if the base hasn’t moved since; it doesn’t change your branch protection rules. It merges through GitHub’s normal merge API, so with “Require branches to be up to date” on, GitHub refuses to merge a PR whose own branch is behind. Our setup page recommends turning that setting off, since the queue’s test branch already does the up-to-date check. If it stays on, Queue to Main tries what “Update branch” does: for a PR from a branch in the same repository, it moves the branch to the commit it just tested, waits for your required checks on it (a second CI run), then merges it (tested end to end 2026-11-03). It can’t do this for PRs from forks, and if your rule dismisses stale approvals, the PR may need approving again. It handles one PR at a time, without batching or parallel lanes.

How to decide

Sources (all read 2026-10-27)

This page describes GitHub features and third-party tools as we found them on the date above. They change; check the linked pages before you decide. Kodiak, Mergify, Trunk, Aviator and Graphite are their owners’ names; we aren’t affiliated with any of them.