> For the complete documentation index, see [llms.txt](https://docs.aviator.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aviator.co/mergequeue/how-to-guides/how-to-block-pull-request-mergeing-with-slash-commands.md).

# How to Block Pull Request Mergeing with Slash Commands

Learn how to block a pull request from merging until certain conditions are met using GitHub slash commands.

Aviator supports conditionally blocking a pull request from being automatically merged in the queue using the `/aviator block until` command. When the pull request reaches the top of the queue, its specified "block until" condition is evaluated. If the condition is met, the PR is merged immediately. If not, the PR is marked as pending. Aviator then continuously checks pending PRs every minute and merges them as soon as their conditions are satisfied.

## Block Until PR

`/aviator block until <some other PR number>` will block a pull request from being merged until the reference PR has been merged.

<figure><img src="https://273246003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAPqUQVbLbsfI5YESl32%2Fuploads%2Fsk3fwXvhkrFyV3jhDJPG%2F4C014C9F-27DC-4B71-98EF-70BE2719F64C.jpeg?alt=media&amp;token=0c4bd58e-a820-49a8-b1ad-021437ce6183" alt=""><figcaption></figcaption></figure>

## Block Until Timestamp

`/aviator block until <timestamp>` will block a pull request from being merged until the given time has passed. Examples of valid timestamps include:

* Absolute ISO timestamp: `2025-02-15T12:30:00.000+0000`
* Date: `2025-02-15`
* Time: `9pm`
* Day of the Week: `Monday`
* Day + Time: `Monday 9pm`

<figure><img src="https://273246003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAPqUQVbLbsfI5YESl32%2Fuploads%2FBAhXNqZ9IosAmo4rCfTj%2F9AB1B054-11D5-455B-9440-2EEC311CB1E7_1_201_a.jpeg?alt=media&amp;token=58aa8940-9b8f-48c2-93ab-8022a11dbe64" alt=""><figcaption></figcaption></figure>

## Cancel Block

`/aviator block cancel` will cancel all block conditions placed on the PR


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.aviator.co/mergequeue/how-to-guides/how-to-block-pull-request-mergeing-with-slash-commands.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
