# Default PR/MR gating configuration for new repositories

If you frequently add repositories to Aikido, you can set a single default PR/MR gating configuration once, and Aikido will automatically apply it to every newly added repository in the future.

### Prerequisite <a href="#prerequisite" id="prerequisite"></a>

Make sure Aikido automatically **activates new repositories**.

If Aikido doesn’t activate the repository, it can’t apply the default configuration.

1. Go to [Repository Settings](https://app.aikido.dev/settings/integrations/repositories).
2. Enable **Automatically activate new repos**.

Need the UI walkthrough? See [Ensuring Aikido Scans New Repositories](/code-scanning/miscellaneous/ensuring-aikido-scans-new-repositories.md).

### Steps <a href="#steps" id="steps"></a>

{% stepper %}
{% step %}
**Go to the configuration page**

Open [Repositories](https://app.aikido.dev/repositories) → [Pull/Merge Requests](https://app.aikido.dev/repositories/prs) → `Manage PR/MR Checks`.

<div data-with-frame="true"><figure><img src="/files/3VYgBHqFnm0shgbBPGVt" alt=""><figcaption></figcaption></figure></div>

In the top-right, open `Actions` and select `Set Default for New Repos`.

<div data-with-frame="true"><figure><img src="/files/TjmwLCgVlgDL5BwOE8XK" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Turn on auto-apply for new repositories**

Enable **Automatically activate scan configuration for new repos**.

This makes Aikido apply your default PR/MR gating settings to new repositories.

<div data-with-frame="true"><figure><img src="/files/jpK1ppajHeSwgpFTvmzq" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Choose the default settings**

Set the configuration you want Aikido to apply by default.

This includes:

* Which scans run on PRs/MRs
* The severity threshold that fails the check
* When comments are added

<div data-with-frame="true"><figure><img src="/files/nZD5ihzXXbcEqrIIV0w3" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Save your settings**

Click **Save Settings**.

Going forward repositories that are added will have this new configuration applied.

Existing repositories will not be affected by this change.
{% endstep %}
{% endstepper %}


---

# 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://help.aikido.dev/pr-and-release-gating/aikido-ci-gating-functionality/default-pr-mr-gating-configuration-for-new-repositories.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.
