> 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 マニフェスト）を、それらの 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 が所有ファイルに触れたときに CODEOWNERS へ自動的にレビューを依頼できます。承認を必須にするのは、必須のコードオーナーレビューです。
{% endhint %}

## GitLab

GitLab では、Aikido AutoFix は変更されたファイルに対する 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 承認を設定します。

## BitBucket

BitBucket では、AutoFix は次に基づいて CODEOWNERS をレビュー担当者として追加します： `.bitbucket/CODEOWNERS` 変更されたファイルに対する CODEOWNERS が 10 人未満の場合のファイル。

これには、次を含む Workspace Access Token が必要です： `account:read` 権限を持つ PAT を作成します。

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2FGND7l9NRUFA4WKh21I3J%2Fimage.png?alt=media&amp;token=fbb6a8a4-99ae-46e2-b8c1-71d74d0edb45" alt=""><figcaption></figcaption></figure>

サポートされている所有者識別子には、メール、チーム、ユーザー名が含まれます。Workspace グループは現在サポートされていません。BitBucket では代わりにチームを使用することを推奨しています。

これをオフにするには次を使用します： `disable_codeowners_as_reviewers` リポジトリの `.aikido` ファイル内で。参照： [レビュー担当者としての CODEOWNERS を無効化](/docs/docs-ja/autofix-to/configure/autofix-pr-configuration.md#disabling-codeowners-as-reviewers).


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.aikido.dev/docs/docs-ja/autofix-to/faq/assigning-default-reviewers-for-autofix-prs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
