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 (“Require branches to be up to date before merging” checked): the PR branch must contain the latest base branch before it can merge. GitHub notes this is the default for required status checks and that more builds may be required.
- Loose (unchecked): a PR can merge with green checks from an older base. Fewer builds, but GitHub warns that status checks may fail after you merge if two changes don’t work together.
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
| Option | Private repos on GitHub Team? | Cost | Each merge tested against the latest base? | Who does the updating? |
|---|---|---|---|---|
| 1. Turn off “Require branches to be up to date” (loose checks) | Yes | Free; fewer CI runs | No: changes that pass alone can break main together | Nobody |
| 2. Strict checks + GitHub auto-merge | Yes (auto-merge is on Pro, Team and Enterprise for private repos) | Free | Yes | Still 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 main | Yes | Free; your CI minutes; you maintain the script | Yes | The 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 on | Kodiak: without update.always, the PRs it is merging (the N−1 case); with it, every labelled PR that falls behind |
| 5. A merge queue | GitHub’s own: only with Enterprise Cloud for private repos. Third-party apps: yes | Mergify, 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 open | Yes: each PR is tested on the latest base before it merges | The 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
- A few merges a day and short CI: keep strict checks and update by hand or with option 3. A queue may be more than you need; GitHub’s docs say a merge queue is particularly useful on branches with many PRs merging each day from many different people.
- You can live with an occasional broken
mainand fix it fast: loose checks cost the fewest CI minutes. Be honest with the team about that trade-off. - Public repositories, or already on Enterprise Cloud: turn on GitHub’s merge queue; it is built in. To add pull requests to it from a script or bot, see the GitHub merge queue API.
- Under 10 people opening PRs: Kodiak costs less than our flat price and is still released.
- You need batching, parallel testing or flaky-test handling: look at the per-seat queues in our Mergify comparison; if it comes down to Mergify or Trunk, Mergify vs Trunk puts who each bills for side by side.
- 10–25 developers on GitHub Team, one main branch, CI short enough that one PR at a time is fine: that is what Queue to Main is for. See how it works, or read why GitHub’s queue isn’t on Team.
Sources (all read 2026-10-27)
- GitHub Docs: About protected branches: strict, loose and disabled status checks; stale approvals; “Require merge queue”
- GitHub Docs: Keeping your pull request in sync with the base branch: Update branch and Update with rebase
- GitHub Docs: Managing suggestions to update pull request branches
- GitHub Docs: Automatically merging a pull request: availability by plan
- GitHub Docs: Managing a merge queue: private repos need Enterprise Cloud
- GitHub CLI manual: gh pr update-branch: merge by default,
--rebaseoption - Kodiak docs: Configuration reference:
update.always, the N(N−1)/2 note, strict-mode requirement; Kodiak docs: Billing: $4.99 per active user per month
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.