Queue to Main

Docs · setup · last updated 2026-11-03

Setup

Five minutes, three changes on your side. Install it on GitHub.

1. Install the App

Install the GitHub App on your organization and pick the repositories it may use. It asks for: Contents read & write, Pull requests read & write, Checks read & write, Commit statuses read, Metadata read (why each one). The App does not change branch protection.

Keep your branch protection as it is: required reviews and required status checks are what Queue to Main checks before queueing and before merging. One exception: turn off “Require branches to be up to date before merging” on the branches you queue to. Queue to Main already tests each PR on the latest base before it merges, and with that setting on, GitHub won’t merge a PR whose own branch is behind (GitHub Docs), so most queued PRs would fail at the merge step. If you leave it on, Queue to Main tries the same thing GitHub’s “Update branch” button does: for a PR from a branch in the same repository, it moves the branch to the commit it just tested (your base plus the PR), waits for your required checks to pass on that commit (the push starts your pull request CI again, so that is a second run), then merges it. We tested this end to end on 3 November 2026. It can’t do this for PRs from forks, and if your branch protection dismisses approvals when new commits are pushed, the PR may need approving again, so turning the setting off is still the simpler path.

2. Run CI on the test branches

For each queued PR, the App creates a branch fmq/<base>/<pr>, for example fmq/main/214: the latest base branch with the PR merged in. Your CI must run on pushes to those branches. For GitHub Actions, add fmq/** to the push trigger of every workflow that produces a required check:

on:
  pull_request:
  push:
    branches:
      - main
      - "fmq/**"

Other CI systems: build pushes to branches matching fmq/*, and report results as check runs or commit statuses on the pushed commit.

Each queued PR runs your CI once more, on the test branch, and again if the base moves and the branch is rebuilt. Those minutes are on your CI bill.

3. Queue and unqueue a PR

4. How a merge happens

There is one lane per repository and base branch. The first PR in the lane is tested; the others wait.

  1. The App builds fmq/<base>/<pr> from the current base plus the PR (GitHub’s merges API; GitHub does the merge, the App never downloads files).
  2. Your CI runs on that branch.
  3. When the required checks pass, the App reads the base branch again. If it hasn’t moved, the App merges the PR with a merge commit (or squash, then rebase, if merge commits are disabled in the repository) and deletes the test branch.
  4. The next PR in the lane starts.

5. Red checks, timeouts and a moving base

6. Where to see the queue

Each queued PR gets a check run (shown as “Queue to Main”) with its position, for example “position 2 of 3”. Its details link to a page listing the whole queue for that installation; the link is signed, so only people with the link can open it.

7. Trial and billing

14-day free trial from install. After that: $49/month per GitHub organization (plus VAT or sales tax where applicable), up to 25 active contributors, monthly, cancel in two clicks in the Stripe customer portal. Without a subscription after the trial, new PRs are not queued (the App comments why). Normal merging is never blocked.

Paid plans aren’t open yet. Until they are, an ended trial keeps queueing and nothing is charged; the App’s billing page says so. When paid plans open, every installation gets at least 14 more days before it needs a plan.

8. Uninstall

  1. Cancel the subscription in the Stripe customer portal, if you have one.
  2. On GitHub: your organization’s Settings → GitHub Apps (under “Third-party Access”), then Configure next to the App and Uninstall (GitHub Docs, read 2026-11-03).
  3. Optionally delete leftover fmq/… branches and the queue label, and remove fmq/** from your workflow triggers.

Uninstalling stops all access at once. To have the data we hold about your installation deleted, see the privacy policy or write to [email protected].