> For the complete documentation index, see [llms.txt](https://docs.flosum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flosum.com/devops/devops-ja/she-ding/pururikuesuto/pururikuesutorruno-1.md).

# プルリクエスト承認ルールの管理

{% hint style="warning" %}

#### 旧UI向けに作成

この記事は旧UI向けに作成されました。手順は今でも使用できますが、スクリーンショットは古くなっています。場合によっては、手順で参照されている項目が移動または変更されていることがあります。項目が見つからない場合は、 [どこに行ったのか](/devops/devops-ja/shii-uiux-heno/dokonittanoka.md) 記事。
{% endhint %}

## ![](https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FG5ZbxX918xOHwbAwAJ4n%2FSummary2-Small-Icon.svg?alt=media\&token=da26a67f-ff7f-47b3-8669-06be960dc2d7) 概要

この記事では、プルリクエスト承認ルールの管理方法について説明します。次の各セクションで、以下の方法を学べます。

* [#disable-approval-rules](#disable-approval-rules "mention")
* [#edit-approval-rules](#edit-approval-rules "mention")
* [#delete-approval-rule](#delete-approval-rule "mention")

{% hint style="info" %}

#### 承認ルールを追加する

プルリクエスト承認ルールの追加手順については、次の記事を参照してください。

* [プルリクエスト承認ルールの追加](/devops/devops-ja/she-ding/pururikuesuto/pururikuesutorruno.md)
  {% endhint %}

## 承認ルールの管理

{% stepper %}
{% step %}

### 承認ルールにアクセスする

1. 次をクリックします **設定** を左側のサイドバー メニューから。
2. 次をクリックします **一般** タブ。
3. 次をクリックします **プルリクエスト**.

   <div align="left"><figure><img src="https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FbyptDbioCmWRmGSh3msD%2FManagingPullRequestApprovalRules-S01-01.png?alt=media&amp;token=0f797715-b7b1-4021-a07f-ae4e0ee72ccd" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### 承認ルールを無効にする

プルリクエスト承認ルールを無効にすると、すべてのルールが無効になり、プルリクエストのマージ前に承認が不要になります。これは、プルリクエストをマージする必要があるものの、必要な承認数を待てない場合に便利です。プルリクエストのマージが完了したら、承認ルールを再度有効にしてください。

{% hint style="info" %}
正式なプルリクエストのレビュー手順を回避して 2 つのブランチをマージしたい場合は、Smart Merge が推奨されます。Smart Merge の実行方法については、次の記事を参照してください。

* [スマートマージの使用](/devops/devops-ja/kdo/buranchi/sumtomjino.md)
  {% endhint %}

1. 次をクリックします **有効にする** 切り替え。

   <div align="left"><figure><img src="https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2F7XoMHpZZjroXg7AGphnv%2FManagingPullRequestApprovalRules-S02-01.png?alt=media&amp;token=ceb8f496-a568-4e50-94d1-76fa2dc4b498" alt="" width="563"><figcaption></figcaption></figure></div>
2. 次をクリックします **保存** 承認ルールを無効にします。

   <div align="left"><figure><img src="https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FJVB0UvJjimIvi70a3Je1%2FManagingPullRequestApprovalRules-S02-02.png?alt=media&amp;token=24d04674-8732-45ae-85d9-5c03cdb3cc43" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### 承認ルールを編集する

この **ブランチの選択** と **承認数** 各ルールの内容を編集できます。

{% hint style="info" %}
ルールを編集するには、ルールを追加するときと同じ手順に従います。より詳しい手順については、以下の記事を参照してください。

* [プルリクエスト承認ルールの追加](/devops/devops-ja/she-ding/pururikuesuto/pururikuesutorruno.md)
  {% endhint %}

1. ルールのブランチ選択または承認数を編集します。
2. すべての編集が完了したら、 **保存** をクリックしてルールの変更を適用します。

   <div align="left"><figure><img src="https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FY9W60PuVsTYwNTmq1iyz%2FManagingPullRequestApprovalRules-S03-01.png?alt=media&amp;token=c6d9c623-3c3f-43cc-8563-8286a4c76dd4" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### 承認ルールを削除する

不要になった承認ルールは削除できます。

{% hint style="warning" %}
誤ってルールを削除した場合は、クリックすることで承認ルールへの未保存の変更をすべて元に戻せます。 **戻る** 保存前に。
{% endhint %}

1. 次をクリックします **ゴミ箱** 削除する承認ルールの横にあるアイコン。
2. 必要な数だけルールを削除します。
3. 次をクリックします **保存** をクリックしてルールの削除を適用します。

   <div align="left"><figure><img src="https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2Fm2SzCxAVYZEVLp89Otqv%2FManagingPullRequestApprovalRules-S04-01.png?alt=media&amp;token=ca6db53c-fbb3-4269-a4e0-f24123a8a70b" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}
{% endstepper %}


---

# 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://docs.flosum.com/devops/devops-ja/she-ding/pururikuesuto/pururikuesutorruno-1.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.
