> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/pr-torirsunogtingu/aikido-ci-gating-functionality/default-pr-mr-gating-configuration-for-new-repositories.md).

# 新規リポジトリ向けのデフォルト PR/MR ゲート設定

Aikido にリポジトリを頻繁に追加する場合は、PR/MR のゲーティング設定を 1 つのデフォルトとして一度設定しておくと、Aikido が今後新しく追加されるすべてのリポジトリに自動的に適用します。

### 前提条件 <a href="#prerequisite" id="prerequisite"></a>

Aikido が自動的に **新しいリポジトリを有効化するようにする**.

Aikido がそのリポジトリを有効化しなければ、デフォルト設定を適用できません。

1. 移動先 [リポジトリ設定](https://app.aikido.dev/settings/integrations/repositories).
2. 有効にする **新しいリポジトリを自動的に有効化**.

UI の手順が必要ですか？こちらを参照してください [Aikido で新しいリポジトリをスキャンするために](/docs/docs-ja/kdosukyan/miscellaneous/ensuring-aikido-scans-new-repositories.md).

### 手順 <a href="#steps" id="steps"></a>

{% stepper %}
{% step %}
**設定ページに移動する**

開く [リポジトリ](https://app.aikido.dev/repositories) → [プル/マージリクエスト](https://app.aikido.dev/repositories/prs) → `PR/MR チェックを管理`.

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

右上の `アクション` をクリックして、次を選択します: `Set Default for New Repos`.

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

{% step %}
**新しいリポジトリに自動適用をオンにする**

有効にする **新しいリポジトリに対してスキャン設定を自動的に有効化**.

これにより、Aikido は新しいリポジトリに対してデフォルトの PR/MR ゲーティング設定を適用します。

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

{% step %}
**デフォルト設定を選択**

Aikido にデフォルトで適用させたい設定を行います。

これには以下が含まれます:

* PR/MR 上で実行されるスキャン
* チェックを失敗にする重大度しきい値
* コメントが追加されるタイミング

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

{% step %}
**設定を保存**

クリック **設定を保存**.

今後追加されるリポジトリには、この新しい設定が適用されます。

既存のリポジトリはこの変更の影響を受けません。
{% endstep %}
{% endstepper %}


---

# 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 dynamically by asking a question.

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

```
GET https://help.aikido.dev/docs/docs-ja/pr-torirsunogtingu/aikido-ci-gating-functionality/default-pr-mr-gating-configuration-for-new-repositories.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
