> 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/autofix-to/automation-and-merging/automatic-creation-of-pull-requests.md).

# プルリクエストの自動作成

Aikidoでは、自動プルリクエスト作成を **毎日**、大量の依存関係の更新の処理、SASTの問題の修正、コンテナのベースイメージの更新、ペンテストの問題の修正を行えます。"PR Configuration" で、プルリクエストのタイトル、説明、ラベル、その他の設定を細かく調整できます。

### 自動作成の設定 <a href="#setup-automatic-creation" id="setup-automatic-creation"></a>

**ステップ1:** 移動先 [Autofix 設定](https://app.aikido.dev/issues/fix/settings) ページ

**ステップ2:** 下にスクロールして Automated PRs を表示します。「Autocreation of PRs」のトグルを有効にします

<figure><img src="/files/84cf9ec2fe39243a39798370867a92b7637fd964" alt=""><figcaption></figcaption></figure>

**ステップ3:** 設定モーダルが開きます。コードリポジトリ内の依存関係に対する自動作成、Dockerコンテナ向けの自動修正、またはSAST/IaCやペンテストの問題の自動修正を有効にできます。PRを作成したいコードリポジトリとコンテナを必ず選択してください。

<figure><img src="/files/63f1c8b0cd38f121e73e0e259167cf6abdcf4e5f" alt=""><figcaption></figcaption></figure>

**ステップ4:** 次をクリックして、新しいPRが正しく作成されるかテストします: **自動作成をテスト** ボタン。

<figure><img src="/files/1bb3d7f32f784575b91c50d2bccebcbcb3c014a8" alt=""><figcaption></figcaption></figure>

### コード依存関係の自動PR作成の上限 <a href="#pull-request-configuration" id="pull-request-configuration"></a>

AutoFix は最大で **1リポジトリあたり10件のPR** 〜の実行中に **毎日** 実行。

### SAST/IaC の自動PR作成の上限 <a href="#pull-request-configuration" id="pull-request-configuration"></a>

リポジトリで初めてSASTスキャンを実行すると、通常は大量の問題が見つかります。プルリクエスト数を管理しやすく保つため、SASTの問題に対するPR作成には以下の上限があります:

* PR は、AutoFix が **medium** または **高い確信度**
* その間に **毎日** 実行すると、AutoFix は **最大** の **1リポジトリあたり最大2件のPR** 最大で **変更されたファイル5件**.
* AutoFix は **オープン中の SAST AutoFix PR** を **1リポジトリあたり10件** に制限します。その上限に達すると、AutoFix は新しい SAST AutoFix PR を自動的には作成しません。PR をクローズまたはマージすると、次の日次実行時に新しい PR が届きます。

より高い上限が必要な場合は、Aikido UI からお問い合わせください。

### プルリクエスト設定 <a href="#pull-request-configuration" id="pull-request-configuration"></a>

AutoFix PR Configuration ページで、プルリクエストのプロパティ（タイトル、ラベル、ブランチ名、コミットメッセージなど）を設定できます。詳細なドキュメントは [こちら](/docs/docs-ja/autofix-to/configure/autofix-pr-configuration.md).


---

# 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/autofix-to/automation-and-merging/automatic-creation-of-pull-requests.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.
