# How to Set Up FlexReview Validation

**How to Enable FlexReview Validation**

FlexReview validation can be enabled in the FlexReview repository-level settings of a specific repo:

<figure><img src="/files/9OX3rDVGDdElToXZG729" alt=""><figcaption><p>Configuring FlexReview.</p></figcaption></figure>

<figure><img src="/files/gQJLFCpJnw1waWLwskOJ" alt=""><figcaption><p>Validation is enabled at the bottom of the configuration page.</p></figcaption></figure>

To use FlexReview Validation, add the relevant base branches to your FlexReview repository-level configuration. This ensures that:

* Validation applies only to pull request targeting these specified branches.
* Isolated branches are excluded from Validation.

You can also configure what slack channel break-glass override notifications will be sent to.ˇ

#### GitHub changes

* When configuring FlexReview Validation, you should move you GitHub Codeowners file to Aviator Owners file to avoid GitHub overriding the validation settings
* In GitHub branch protection rules, make sure the setting “dismiss all approvals on push” is disabled.
* Add Aviator FlexReview as a required check in your branch ruleset:

<figure><img src="/files/gFGDx7MrzrR2snobAIyn" alt=""><figcaption><p>The "require status checks to pass" option on GitHub's branch rulesets page.</p></figcaption></figure>

<figure><img src="/files/QDiRLZrNB6OuNGZL6VTf" alt=""><figcaption><p>An aviator/flexreview status check in GitHub.</p></figcaption></figure>

## **Break-Glass Functionality**

In case of emergency merges, FlexReview Validation can be overridden by commenting on the pull request:

<figure><img src="/files/9K7xgLlged9MqmMSB42u" alt=""><figcaption></figcaption></figure>

Once this comment is posted:

* The PR will only require a single general approval from any user to be merged.
* A Slack notification will be sent to a designated channel to inform the team of the override.


---

# 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/flexreview/how-to-guides/how-to-set-up-flexreview-validation.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.
