> 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/why-does-autofix-close-prs.md).

# なぜAutoFixはPRを閉じるのか？

重複する依存関係の修正を含む複数のオープンなプルリクエストがある状態では、依存関係の問題の解決には役立たないと私たちは考えています。そのため、AutoFix はオープンな AutoFix プルリクエストの数を管理しやすく保つために、プルリクエストをクローズします。

プルリクエストがクローズされる理由はいくつかあります：

1. 問題は **修正されました** 別の方法で
2. ある **新しい AutoFix プルリクエスト** 修正の上位集合を含むものが作成されました
3. プルリクエストは **競合しており** AutoFix がプルリクエストを再作成しました

### すでに修正済みの問題

Aikido で問題がクローズされると、その問題に対するオープンなプルリクエストがないかを確認します。問題に対するオープンなプルリクエストが見つかった場合、AutoFix はそのオープンなプルリクエストをクローズします。

Aikido のプルリクエストがオープンな状態で手動修正が行われた場合に、これが起こることがあります。

### 新しい AutoFix プルリクエスト

AutoFix がプルリクエストを作成するとき（UI または自動ジョブ経由）、新しく作成されたプルリクエスト内の変更の一部を含むオープンなプルリクエストがないかを確認します。AutoFix は、修正の一部を含むプルリクエストを見つけると、そのプルリクエストをクローズし、新しいプルリクエストを優先します。

例として、PR 1 が問題 A を修正し、PR 2 が問題 A と B を修正する場合、PR1 はクローズされます。

### 競合したプルリクエスト

自動化された AutoFix ジョブが、プルリクエストはオープンであるもののマージ競合が含まれていることを検出すると、その競合を解消するために新しいプルリクエストを作成するよう、プルリクエストをクローズします。


---

# 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/why-does-autofix-close-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.
