Migrate from Bors‑NG to Mergify
Map Bors‑NG try/staging queues and permissions to Mergify rules and Merge Queue.
Bors‑NG orchestrates a “try → staging → master” flow with batch testing and ordered merges. Mergify offers a production‑grade Merge Queue with similar guarantees plus flexible rules.
Typical Migration Plan
Section titled Typical Migration Plan- Keep your branch protection and checks
- Define one queue rule in
.mergify.yml
- Replace
bors r+
approvals with@mergify queue
command
Concepts mapping
Section titled Concepts mappingbors r+
approval →@mergify queue
command- batch size → Mergify batches with configurable size
- priority → Mergify queue priorities
Minimal equivalent configuration
Section titled Minimal equivalent configurationQueue and rule that enqueue on approval and pass checks:
queue_rules:
- name: default
batch_size: 1
queue_conditions:
- base = main
- check-success = ci
- "#approved-reviews-by>=1"
Emulating “try” builds
Section titled Emulating “try” buildsIf you relied on bors try
to validate speculative changes, you can keep a
lightweight CI workflow triggered by a label or comment
Batches and priorities
Section titled Batches and prioritiesIncrease throughput with batches and prioritize urgent PRs:
queue_rules:
- name: default
batch_size: 3
queue_conditions:
- base = main
- check-success = ci
- "#approved-reviews-by>=1"
priority_rules:
- name: urgent
conditions:
- label = urgent
priority: high