# Concepts for MergeQueue

- [Queue Modes](https://docs.aviator.co/mergequeue/concepts/queue-modes.md): Check the main queue modes MergeQueue can be configured to operate in. Default, parallel, and no queue modes explained with different features and performance.
- [Pull Request Lifecycle](https://docs.aviator.co/mergequeue/concepts/pull-request-lifecycle.md): Learn the main states a pull request can be in MergeQueue. MergeQueue tracks pull requests from the time they are opened until they are merged or closed.
- [Analytics](https://docs.aviator.co/mergequeue/concepts/analytics.md): Check out the analytics metrics you can access on the Analytics page of Aviator and what they mean. Time in Queue, Aviator bot usage, PR failure reasons, etc.
- [Parallel Mode](https://docs.aviator.co/mergequeue/concepts/parallel-mode.md): Learn about parallel mode in MergeQueue, how to configure it, Draft PRs created in this mode by Aviator, CI behaviors, managing parallelism, and other details.
- [CI Status Requirements](https://docs.aviator.co/mergequeue/concepts/ci-status-requirements.md): MergeQueue allows you to add more requirements at different levels. Learn about pre-queue status requirements and draft PR status requirements supported.
- [MQ Created Branches](https://docs.aviator.co/mergequeue/concepts/optimizing-ci-execution.md): Find out when Aviator MergeQueue automatically creates branches and pull requests in our guide. mq-bot-\* branches and draft PRs, mq-tmp-\* branches, and more.
- [Batching](https://docs.aviator.co/mergequeue/concepts/batching.md): Learn the nuances of batching and related FAQs. Batching works alongside Parallel mode to scale the throughput of PRs merged, by merging more PRs per CI run.
- [Managing flaky tests](https://docs.aviator.co/mergequeue/concepts/managing-flaky-tests-in-mergequeue.md): Learn about the flaky test problem in parallel mode and how to manage flaky tests with optimistic validation. Optimistic validation configuration instructions.
- [Fast-forwarding](https://docs.aviator.co/mergequeue/concepts/fast-forwarding.md): With MergeQueue fast-forwarding, Aviator builds parallel speculative pipelines in sequential order, guaranteeing that the default branch is always green.
- [Pre-Queue Conditions](https://docs.aviator.co/mergequeue/concepts/pre-queue-conditions.md): Learn what pre-queue conditions you can set to make a PR meet them before entering a queue. Number of approvals, required GitHub checks, and others.
- [Sticky Comments](https://docs.aviator.co/mergequeue/concepts/sticky-comments.md): Aviator provides sticky comments to show the PR status within GitHub. Check out the core comments that are generated to better understand when you can see them.
- [Backporting](https://docs.aviator.co/mergequeue/concepts/backporting.md): Read how backporting works with Aviator MergeQueue. Backport a particular PR on another base branch to create a new PR that keeps and applies original changes.
- [Paused Queues](https://docs.aviator.co/mergequeue/concepts/paused-queues.md): Read about the paused queues feature and how MergeQueue works when a queue is paused. Pausing a queue allows you to control whether devs can merge PRs.
- [Affected Targets](https://docs.aviator.co/mergequeue/concepts/affected-targets.md): MergeQueue affected targets overview and configuration. Create dynamic queues to combine multi-queue and parallel processing benefits for merging PRs.
- [Directory-Based Affected Targets](https://docs.aviator.co/mergequeue/concepts/affected-targets/directory-based-affected-targets.md): Get setup instructions for automated and manually specified targets. Learn how to manually define targets based on your directory structure in our guide.
- [nx based affected targets](https://docs.aviator.co/mergequeue/concepts/affected-targets/nx-based-affected-targets.md): Read how to configure Nx-based targets in MergeQueue. Nx is a popular build framework for monorepos that identifies the targets that are affected by a change.
- [GitHub Actions based Affected Targets](https://docs.aviator.co/mergequeue/concepts/affected-targets/github-actions-based-affected-targets.md): Learn how to configure GitHub Actions workflows to run only when certain files are changed. MergeQueue can identify the affected targets for the queue.
- [ChangeSets](https://docs.aviator.co/mergequeue/concepts/changesets.md): Read an overview of the ChangeSets feature. It allows you to create a list of PRs to be merged together, which is helpful for merging a large number of PRs.
- [Global CI Validation](https://docs.aviator.co/mergequeue/concepts/changesets/global-ci-validation.md): Discover the Global CI Validation setting in MergeQueue ChangeSets. It enables Aviator to issue webhooks you can use to trigger CI tests for pre-merge checks.
- [ChangeSets FAQs](https://docs.aviator.co/mergequeue/concepts/changesets/faqs.md): Find answers to common questions about the ChangeSets feature that creates a list of PRs to be merged.
- [Priority Merges](https://docs.aviator.co/mergequeue/concepts/priority-merges.md): Find out how the priority merge feature works. When this label is applied to a pull request, Aviator moves it to the front of the queue to be merged first.
- [Instant Merges](https://docs.aviator.co/mergequeue/concepts/priority-merges/instant-merges.md): Read about instant merges, why use instant merge, and how to configure it in our guide. This method merges the PR directly without waiting for the CI to finish.
- [Merge Rules Audit Trail](https://docs.aviator.co/mergequeue/concepts/audit-trail.md): Learn details about how merge rules audit trail works. It allows you to know when your merge rules have been changed, and who changed them for better tracking.
- [Timeline](https://docs.aviator.co/mergequeue/concepts/timeline.md): Read more about the Timeline tool. It allows you to look at all the current and past actions by Aviator and filter activities based on event and base branches.
- [Ready Hook](https://docs.aviator.co/mergequeue/concepts/ready-hook.md): Learn what are ready hooks in MergeQueue and how they work. User-defined ready hooks can execute custom JavaScript code to control MergeQueue behavior.
- [Reduce Queue Failures From Staleness](https://docs.aviator.co/mergequeue/concepts/reducing-queue-failures-due-to-staleness.md): When a code review takes too long, by the time the PR is ready to be merged, the PR may become stale. Get troubleshooting instructions here.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aviator.co/mergequeue/concepts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
