Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Comparison

This page compares MergeSpan v0.1 with Mergify and GitHub’s native merge queue. It is written for readers evaluating the options, not for marketing. Where MergeSpan lacks a feature, it says so.

At a glance

CapabilityMergeSpan v0.1GitHub native merge queueMergify
Squash mergeYes (only method)Yes (merge, rebase, squash)Yes (merge, rebase, squash, fast-forward, merge-batch)
Batched / grouped pull requestsNoYes (merge groups)Yes (configurable batches)
Parallel speculative candidatesNoYes (up to the build-concurrency limit)Yes
Multiple target bases in one configurationNo (one repository/base; bootstraps from main)Per repository/branch setupMultiple queue rules per repository
Priority / urgent handlingBinary urgent label, manualNot a queue featurePriority rules
Two-step / custom CIRepository CI only; no queue-injected workflowmerge_group CI requiredTwo-step CI support
Pause / freeze from a UIYes (console)Repository rules/settingsYes (dashboard, CLI, API)
Fork pull requestsNever queued (same_repo_only = true)Repository settingConfigurable
Self-hostingWorkers, ingress Worker, native systemd/DockerGitHub-hosted onlyCloud SaaS
Hosted offer / install buttonNoBuilt into GitHubCommercial SaaS
Atomic merge guaranteeNoNo atomic compare-and-swap eitherNot claimed here

MergeSpan v0.1 in detail

MergeSpan is deliberately narrower than both alternatives:

  • One queue per repository and base branch. v0.1 bootstraps from main and requires the configuration’s base to match at initialization. Multiple target bases in one installation are not supported.
  • Squash only. There is no merge-method option. Merge commits, rebase merges, fast-forward merges, and batch merges are not implemented.
  • No batching. Each queued pull request is verified alone on its candidate SHA. There is no grouping of multiple pull requests into one candidate or one CI run.
  • No fork pull requests. The runtime refuses any configuration with same_repo_only unset or false, so only same-repository heads are admitted.
  • No speculative parallel checks. The queue serializes: one active candidate at a time. This trades throughput for simplicity and predictable resource use on small queues.
  • No general rule engine. Labels and comment commands are the only triggers. There are no pull_request_rules, path filters, author conditions, review requirements, or merge-protection expressions.
  • Not atomic. GitHub’s merge API does not provide compare-and-swap on the base branch. MergeSpan re-reads the PR, base, and candidate immediately before merging, then reconciles the squash commit’s parent and tree. A concurrent merge can still land first; reconciliation detects and pauses on the mismatch.
  • No hosted service. MergeSpan is self-hosted. There is no install button and no hosted queue to sign up for.
  • Console is read-mostly. It offers Reconcile, dequeue, urgent, pause, freeze, and resume. It is not a general dashboard for repository automation.

What MergeSpan does well

  • Exact candidate checks. Required checks must be GitHub Actions runs with the exact candidate SHA and Success conclusion. It does not accept neutral, skipped, or stale results.
  • Read-before-write recovery. Candidate creation, merge, and cleanup start with fresh reads; an interrupted squash is recovered read-first and never retried as a blind PUT.
  • Fail-closed pauses. A post-merge parent/tree mismatch pauses the queue and comments; it is never reported as success.
  • Low operational surface. One SQLite database per repository, no external database, no queue analytics pipeline, no paid observability requirement.
  • No external assets. The console bundles all JS/CSS; it does not load third-party scripts or fonts.

What MergeSpan deliberately does not claim

  • It does not claim atomicity or a CAS primitive.
  • It does not claim to replace Mergify’s rule engine, batching, or multi-repository workflows.
  • It does not claim a hosted service or a one-click install.
  • It does not claim performance numbers in v0.1. The sandbox record contains measurements for the ingress Worker only, not a general throughput benchmark.

GitHub’s native merge queue

GitHub’s native merge queue is built into repository settings and rulesets. It supports merge groups, configurable merge methods (merge, rebase, squash), build concurrency, and “only merge non-failing pull requests” behavior. It requires CI workflows to trigger on merge_group, and it cannot be enabled with branch protection patterns that use wildcard characters.

See GitHub’s official documentation:

MergeSpan differs in that it is an App and can run on self-hosted infrastructure, but it gives up batching, multiple merge methods, and multiple base branches.

Mergify

Mergify is a commercial merge-queue and automation service. Its queue supports queue rules, merge methods, batching, priority rules, two-step CI, and parallel checks. It also has a general rule engine for pull-request automation. These capabilities come with a hosted service and configuration surface that MergeSpan v0.1 does not replicate.

See Mergify’s official documentation:

MergeSpan’s migration guide describes which Mergify concepts map and which must remain in GitHub branch protection or CI: Migrate from Mergify.

When to choose what

SituationFit
You need a self-hosted queue with exact candidate checks and a small serial workloadMergeSpan v0.1
You need batches, multiple merge methods, or multi-branch queuesGitHub native or Mergify
You need fork pull requests in the queueGitHub native or Mergify (MergeSpan never queues forks)
You need a hosted queue with priority rules and analyticsMergify or GitHub native
You need to avoid a hosted dependency and can run Workers or a Linux processMergeSpan v0.1
You need atomic merge semanticsNone of the three provide a base compare-and-swap; verify behavior with your own integration test

Official sources