View as Markdown

Setting Up a Merge Queue

Get your merge queue running in 5 minutes.


Get your first PR merged through a queue in under 5 minutes. No complex setup required.

Install the Mergify GitHub App on your repository. That’s it — you now have a working merge queue.

On any open pull request, comment:

@mergifyio queue
Mergify queue command

Mergify adds your PR to the queue, updates it against the latest main branch, waits for CI to pass, and merges it automatically.

Open the Mergify dashboard to see your PR moving through the queue in real-time.

Mergify Queue Status

That’s it. Your merge queue is live.

With zero configuration, your queue already:

  • Updates PRs against the latest main before merging
  • Runs your CI on the updated code (not stale branches)
  • Merges automatically when checks pass
  • Respects your GitHub branch protections and rulesets

This alone prevents the classic problem: PRs that pass CI individually but break main when merged together.

Once your basic queue is running, explore these optimizations:

GoalFeatureGuide
Skip manual queueingAuto-queue approved PRsAutoqueue
Merge fasterTest multiple PRs in parallelParallel checks
Save CI costsCombine PRs into single CI runsBatches
Prioritize urgent PRsJump the queue when neededPriority
Run heavy tests only at mergeSplit fast/slow CI checksTwo-step CI
Monorepo optimizationOnly test affected codeScopes