> 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 のプルリクエストに対してデフォルトのレビュアーを設定することをサポートしていません。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. マージ前にプルリクエストを必須にする
2. 有効にする **Code Owners によるレビューを必須にする**

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

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

## GitLab

GitLab では、変更された lockfile に対して CODEOWNERS が 10 未満の場合、Aikido AutoFix はすでにマージリクエストのレビュアーとして 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.
