> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Merge Queue: Direct Merge to Main

> Skip redundant testing and merge immediately when your PR is already up-to-date and the queue is empty

**Skip redundant testing and merge immediately when your PR is already up-to-date and the queue is
empty**

<img src="https://mintcdn.com/trunk-4cab4936/Q0FYmvzYiNeEZWhS/assets/changelog/merge-queue-direct-merge-to-main-evezyw.png?fit=max&auto=format&n=Q0FYmvzYiNeEZWhS&q=85&s=95eadf9474569b5fa0034088e1fee9fa" alt="" width="1712" height="326" data-path="assets/changelog/merge-queue-direct-merge-to-main-evezyw.png" />

The merge queue exists to test your PR against the latest version of main, but if your PR is already
based on the tip of main and the queue is empty, rerunning tests provides no additional value;
you've already tested against the exact state your PR will merge into. 

With this optimization, Trunk Merge Queue will recognize this situation and merge your PR directly
without the unnecessary wait.

[Read the Docs](https://docs.trunk.io/merge-queue/optimizations/direct-merge-to-main) to learn more
