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
| Capability | MergeSpan v0.1 | GitHub native merge queue | Mergify |
|---|---|---|---|
| Squash merge | Yes (only method) | Yes (merge, rebase, squash) | Yes (merge, rebase, squash, fast-forward, merge-batch) |
| Batched / grouped pull requests | No | Yes (merge groups) | Yes (configurable batches) |
| Parallel speculative candidates | No | Yes (up to the build-concurrency limit) | Yes |
| Multiple target bases in one configuration | No (one repository/base; bootstraps from main) | Per repository/branch setup | Multiple queue rules per repository |
| Priority / urgent handling | Binary urgent label, manual | Not a queue feature | Priority rules |
| Two-step / custom CI | Repository CI only; no queue-injected workflow | merge_group CI required | Two-step CI support |
| Pause / freeze from a UI | Yes (console) | Repository rules/settings | Yes (dashboard, CLI, API) |
| Fork pull requests | Never queued (same_repo_only = true) | Repository setting | Configurable |
| Self-hosting | Workers, ingress Worker, native systemd/Docker | GitHub-hosted only | Cloud SaaS |
| Hosted offer / install button | No | Built into GitHub | Commercial SaaS |
| Atomic merge guarantee | No | No atomic compare-and-swap either | Not 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
mainand requires the configuration’sbaseto 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_onlyunset orfalse, 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
Successconclusion. 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
| Situation | Fit |
|---|---|
| You need a self-hosted queue with exact candidate checks and a small serial workload | MergeSpan v0.1 |
| You need batches, multiple merge methods, or multi-branch queues | GitHub native or Mergify |
| You need fork pull requests in the queue | GitHub native or Mergify (MergeSpan never queues forks) |
| You need a hosted queue with priority rules and analytics | Mergify or GitHub native |
| You need to avoid a hosted dependency and can run Workers or a Linux process | MergeSpan v0.1 |
| You need atomic merge semantics | None of the three provide a base compare-and-swap; verify behavior with your own integration test |
Official sources
- GitHub: Managing a merge queue
- GitHub: How merge queues work
- GitHub: Configuring continuous integration (CI) workflows for merge queues
- Mergify: Using Queue Rules
- Mergify: Merge Strategies
- Mergify: Queue Setup