> 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/faq/assigning-default-reviewers-for-autofix-prs.md).

# AutoFix PR のデフォルトレビュアーを割り当てる

Aikido は現在、AutoFix の pull request に対するデフォルトレビュワーの設定をサポートしていません。AutoFix は SCM に PR を開きますが、Aikido の設定からレビュワーを割り当てることはありません。

現時点での実用的な方法は、リポジトリ自体でレビュワーを次で強制することです **CODEOWNERS** と **必須レビュー**.

## GitHub の回避策

GitHub ネイティブの CODEOWNERS サポートとブランチ保護を使って、AutoFix が所有するファイルを変更した際に適切な人にレビュー依頼が送られ（かつ必須にされる）ようにします。

{% stepper %}
{% step %}

### CODEOWNERS ファイルを追加する

作成してください `CODEOWNERS` ファイルを `.github/`、リポジトリのルート、または `docs/`に。AutoFix が通常変更するパス（たとえば lockfile や package manifest）を、それらの PR をレビューすべきユーザーやチームにマッピングします:

```
# AutoFix によってよく変更される依存関係ファイル
package.json @your-org/security-team
package-lock.json @your-org/security-team
yarn.lock @your-org/security-team
pnpm-lock.yaml @your-org/security-team
requirements.txt @your-org/security-team
poetry.lock @your-org/security-team
Cargo.lock @your-org/security-team
go.sum @your-org/security-team
```

パスと所有者は、リポジトリの構成に合わせて調整してください。構文の詳細は [コードオーナーについて](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) を参照してください。
{% endstep %}

{% step %}

### コードオーナーによるレビューを必須にする

対象ブランチに対するリポジトリのブランチ保護ルール（またはルールセット）で:

1. マージ前に pull request を必須にする
2. 有効にする **Code Owners によるレビューを必須にする**

これを有効にすると、GitHub は一致する CODEOWNERS にレビューを依頼し、それらのレビューが満たされるまでマージをブロックします。AutoFix の PR も他の PR と同じルールに従います。
{% endstep %}
{% endstepper %}

{% hint style="info" %}
GitHub は、PR が所有ファイルに触れたとき、マージ時にコードオーナーのレビューを必須にする前でも、CODEOWNERS に自動的にレビューを依頼できます。承認を必須にするのは、必須のコードオーナーレビューです。
{% endhint %}

## GitLab

GitLab では、Aikido AutoFix は、変更された lockfile に対して CODEOWNERS が 10 未満の場合、すでにマージリクエストのレビュワーとして CODEOWNERS を追加します。これをオフにするには `disable_codeowners_as_reviewers` リポジトリの `.aikido` ファイル内で。詳細は [レビュワーとしての CODEOWNERS を無効にする](/docs/docs-ja/autofix-to/configure/autofix-pr-configuration.md#disabling-codeowners-as-reviewers).

マージ前にそれらのレビューを必須にするには、GitLab 自体で承認ルールまたは CODEOWNER 承認を設定してください。


---

# 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/faq/assigning-default-reviewers-for-autofix-prs.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.
