> ## 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 queues

> How Dynamic CI behaves when your merge queue tests a pull request.

Dynamic CI uses the branch to tell whether a run is for a pull request or a
merge queue, and runs the two differently:

* **Pull requests** are scored by the Dynamic CI engine, which skips jobs with
  nothing left to check.
* **Merge queues** (Trunk Merge Queue's `trunk-merge/` branches) use your paths
  filters only. A job is skipped only when a paths filter excludes it. With no
  paths filter, every job runs.

If you want other conditions on when a job runs, add them to the job's `if`:

```yaml theme={"system"}
if: >-
  !cancelled() &&
  needs.dynamic-ci-filter.outputs.unit-tests != 'false' &&
  github.ref != 'refs/heads/release'
```
