Trunk Merge Queue: A better way to streamline your PRs

3 min read Original article ↗

When Your Team Outgrows GitHub's Merge Queue

The enterprise upgrade built for reliability at any scale. Handle your noisiest pipelines and cut CI costs up to 90 percent.

With 14 days data for free

Trusted by thousands of engineers at fast-growing companies

Merging Your First PR with Trunk Merge Queue

How Trunk Keeps Your Queue Moving

Anti-Flake Protection

Fight the slowdown caused by flaky tests in CI. If a test fails in a CI run but passes in a second run further back in the queue, Trunk Merge Queue will identify the test as flaky and merge both PRs.

Learn more about Anti-Flake Protection

Feature 1

Anti-Flake Protection

Feature 2

Batching

Feature 3

Parallel Queues

Feature 4

Predictive Testing

Feature 5

Optimistic Merging

Why Uber Bet on Merge Queues Over Five Years Ago

60%

improvement in turnaround time.

1.92x

improvement in keeping mainline green.

94%

of developers rated the merge queue as better than previous systems.

Prevent broken builds on your main branch without sacrificing velocity

Trunk's parallel merge queues provide speedy PR merging with all the protection of a traditional merge queue

Protect Your Main Branch

Trunk Merge Queue strategically tests combinations of pull requests to identify issues before they merge into your main branch.

Integrate with your Build System

Use data from build systems like Bazel or Nx to run CI jobs for unrelated PRs in parallel queues.

Real-time notifications

Get updates on any platform using webhooks or the built-in Slack integration, and find the latest info in automated GitHub PR comments.

Break the Logjam

Escape O(n²) CI runtime and only test your PR against other relevant changes, instead of every PR in the queue.

Merge Automation

Trunk Merge Queue will wait until all the gating requirements are met before merging so you can avoid context switching to merge at a later time.

Always Up-to-Date CI

Trunk Merge Queue ensures every PR is tested against the latest commit on your main branch so you can skip manual rebases and avoid testing against out-of-date code.

Highly Customizable Merge Queue

Use the public REST API to submit PRs for testing and merging, cancel them, and access status info to fine-tune the queue.

See how Teams Build Faster with Trunk

Boosting Engineering Productivity at Faire

"Trunk has saved us 330 hours by preventing merge issues over the last 35 days - that's 9.4 hours of engineering productivity saved per day...it's been great."

Increasing Engineering Velocity at Glydways

"I heard some comments... a week after we enabled it, and they basically told me, 'Man, you got that just in time...'"

Seamless CI/CD Integrations

Trunk is a merge queue for GitHub repos, and it works with any CI or build provider including Jenkins, GH Actions, CircleCI, Buildkite, Bazel, Nx, and more.