🚀 Visualize your CI jobs, understand failures and auto-retry your flaky tests with CI Issues - Join the Waitlist!

Queue, Update and Merge Your Pull Requests

  1. Secure your code merge by updating your PRs automatically before merge.
  2. Prioritize your pull requests merge.
  3. Improve your merge frequency and batch your PRs to save CI time.
  4. Enhance your developer experience.

What Is a Merge Queue?
How Does It Work?

To better understand what is a Merge Queue and its usefulness, let's imagine a GitHub repository in the following situation: a pull request is created, it passes the CI, and it is approved by reviewers. All the checks are green, just like the merge button.

1️⃣ Between the moment when all the checks are green and when you press the merge button, another one has just been merged and a new commit appears on the main. Not aware of that, you still see your PR as valid so you slap the merge button.

2️⃣ Boom, Code Conflict: you just broke the main branch! The outdated pull request you just merged introduces regression or breakages in the production system.

😭 Tons of engineers are confronted with this problem every day.

🦾 Using a merge queue solves that problem by updating any pull request that is not up-to-date with its base branch - thanks to an automatic rebase - before it is merged. The update forces the CI to retest the pull request with the new code from its base branch, catching any potential regression.

A Unique Set of Features

Click on the cards to learn more and read the related documentation.

Real Life
Use Cases

Click on the cards to learn more and read the related documentation.

Merge Queue in Action
Demo Videos

Now that you've understood the basic concept of a merge queue let's get down to the nitty-gritty with a few demos.

1. Merge Queue Demo

Mergify is a GitHub Application that you can install in one click on your repositories. Fabien will present you our Merge Queue solution thanks to a screen recording of the tool.

2. Feature: Batches

In this video, Fabien will make a demo of the Batches feature. Using the Batch feature, Mergify can check the mergeability of several pull requests simultaneously.
You can also watch the feature presentation video available on our channel.

3. Feature: Speculative Checks

In this video, Fabien will make a demo of the Spec Checks feature. Speculative checks put the first PRs from the queue in a merge train and test them together in parallel so they can be merged faster.
You can also watch the feature presentation video available on our channel.

How to Set Up the Merge Queue
Three Easy Steps

Only three steps to set up your merge queue, automate, and optimize your code merging processes.

Mergify guide

1. Install Mergify

Mergify is a GitHub Application that you can install in one click on your repositories.

2. Enable Mergify

Write your rules in YAML. You can match a pull request on any criteria: branch, author, labels, etc. Then uses the queue action to trigger a git merge as soon as the pull request is ready, setting the priority of the pull request.

Use case code
Use case code

3. Watch it merge!

Mergify updates the pull request status in real-time and informs you about which criteria match. As soon as your conditions are validated, Mergify merges the pull request using the method you specified.

Users' Voices

To understand how you can use and benefit from our Merge Queue, what better way than to let our users have their say.

Customers' Case Studies

Testimonials

Any Questions?
Let's Talk with the Team