> For the complete documentation index, see [llms.txt](https://manual.dxable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.dxable.com/clickup/integrations-and-clickup-api/integrations/github-automations.md).

# GitHub Automations

[GitHub 統合](https://help.clickup.com/hc/en-us/articles/6305771568791-GitHub)を使用して、 GitHub とClickUp間で作業を同期しますか? GitHub Automationsを追加して効率的なワークフローを構築します。 ソフトウェア チームは、Automationsを使用してコンテキストの切り替えを減らし、すべてを最新の状態に保つことができます。

### **必要条件** <a href="#gjdgxs" id="gjdgxs"></a>

* [自動化統合](https://help.clickup.com/hc/en-us/articles/6312091699735-Set-up-Automations-Integrations)はビジネス プラン以上でご利用いただけます。
* ワークスペース[管理者または所有者](https://help.clickup.com/hc/en-us/articles/6310033667223-User-Roles)は、[ ](https://help.clickup.com/hc/en-us/articles/6310033667223-User-Roles)[Automation ClickApp](https://help.clickup.com/hc/en-us/articles/6304327753111-ClickApps-overview)を有効にする必要があります。
* Automationsを設定するには、GitHub リポジトリに対する管理者権限が必要です。
* [Guests](https://help.clickup.com/hc/en-us/articles/6310022323991-Guests-overview)はGitHub 統合を使用できません。

### **ClickUpにGitHubオートメーションを追加する** <a href="#id-30j0zll" id="id-30j0zll"></a>

[ClickUp階層](https://help.clickup.com/hc/en-us/articles/13856392825367-The-Hierarchy-overview)のスペース、フォルダー、リスト レベルで GitHubAutomationsを追加できます。

1. 自動化が適用される[スペース](https://help.clickup.com/hc/en-us/articles/6309466958103-Spaces-overview)、[フォルダー](https://help.clickup.com/hc/en-us/articles/6311450560407-Learn-the-difference-between-Folders-and-Lists)、または[リスト](https://help.clickup.com/hc/en-us/articles/6311450560407-Learn-the-difference-between-Folders-and-Lists)に移動します。
2. 右上隅にあ&#x308B;**\[Automations]**&#x30DC;タンをクリックします。
3. **\[Add Automations]**&#x3092;クリックします。
4. 上部&#x306E;**\[Browse]**&#x3092;選択します。
5. 左側のサイドバーか&#x3089;**\[Github]**&#x3092;選択します。
6. 使用する自動化を選択するか、\[**Show More]**&#x3092;クリックして、利用可能なその他の GitHub Automationsを表示します。
7. 次のオプションを使用して GitHub アカウントを接続します。
   * 既存の GitHub アカウントのドロップダウン リストから選択します。
     * 以前に承認された GitHub アカウントを更新するには、アカウントを削除して再度追加する必要があります。
     * アカウントを削除しても、そのアカウントを使用する既存のAutomationsには影響しません。 将来 GitHub Automationsを作成するには、再度追加する必要があります。
   * GitHub ユーザー名をEnter、**\[Connect Account]**&#x3092;クリックしてClickUpを承認するか、**\[Create an account]**&#x3092;クリックしてGitHub.com に新しいアカウントを作成します。
8. GitHub アカウントを使用してAutomationsを作成できるユーザーを指定します。
9. トリガー、条件、アクションを構成します。
   * 各 GitHub Automation では、特定のリポジトリ (repo) を選択できます。
   * 利用できるオプションは、使用している GitHub Automation によって異なります。
10. **\[Create]**&#x3092;クリックします。
11. 他の人が GitHub Automation の機能を理解しやすいように、わかりやすい説明を GitHub Automation に付けることを検討してください。

### **GitHub Automations** <a href="#id-1fob9te" id="id-1fob9te"></a>

[GitHub Automationsは、ClickUpのAutomations](https://help.clickup.com/hc/en-us/articles/6312102752791-Automations-overview)と同じ構造を使用します。

すべての自動化はトリガーとアクションで構成されます。 [ビジネス プラン以上](https://clickup.com/pricing)のユーザーには、条件を使用するオプションがあります。

### **GitHub トリガー** <a href="#id-3znysh7" id="id-3znysh7"></a>

指定された GitHub リポジトリで次のイベントが発生し、条件が満たされると、自動化が実行され、アクションが実行されます。

* プルリクエストがマージされた
* ブランチが統合された
* コミット時
* プルリクエストレビューが作成された
* プルリクエストレビューが更新された
* CI/CD Statusが変更されました
* プルリクエストがリンクされた
* ブランチがリンクされた
* コミットがリンクされた

### **GitHub 条件** <a href="#id-2et92p0" id="id-2et92p0"></a>

プル リクエストに関連する GitHubAutomationsでは、1 つ以上の条件がサポートされます。

たとえば、**\[main]**&#x30D6;ランチへのプル リクエストがリンクされたときにタスクのステータスを更新できます。 または、タスクの優先度を緊急に設定し、**\[hotfix]**&#x30E9;ベルの付いたプル リクエスト&#x304C;**\[QA]**&#x30D6;ランチにマージされたときにコメントします。

プル リクエスト ラベル、ベース参照、ヘッド参照値の複数の組み合わせに対して条件を設定できます。

### **条件ロジック** <a href="#tyjcwt" id="tyjcwt"></a>

次の条件ロジックを使用できます。

* **is any of：**&#x30D7;ル リクエストには、指定されたラベルまたはブランチの少なくとも 1 つが含まれます。
* **is all of：**&#x30D7;ル リクエストには、指定されたラベルまたはブランチがすべて含まれます。
* **is not any of：**&#x30D7;ル リクエストには、指定されたラベルまたはブランチのいずれも含まれていません。
* **is not all of：**&#x30D7;ル リクエストには、指定されたラベルまたはブランチがすべて含まれていません。

ラベルの場合、上記のロジックに加えて次のロジックを使用できます。

* **is set：**&#x30D7;ル リクエストに少なくとも 1 つのラベルが適用されています。
* **is not set：**&#x30D7;ルリクエストにラベルが適用されていません。

### **条件を追加する** <a href="#id-3dy6vkm" id="id-3dy6vkm"></a>

GitHub 自動化に条件を追加するには：

1. 自動化の「トリガー」セクションで、**\[Add Condition]**&#x3092;クリックします。
2. 条件を適用する対象を選択します：

* **Githublabelcondition ：**&#x30D7;ルリクエストに適用されるラベル。
* **Head ref：**&#x63D0;案された変更を含むソース ブランチ。
* **Base ref：**&#x5909;更が適用されるターゲット ブランチ。

条件ロジックを選択します。

この条件で使用するラベルまたはブランチ値を選択します。 条件では大文字と小文字が区別されます。 ラベルまたはブランチ名と完全に一致する必要があります。一致しない場合は基準を満たさず、自動化がトリガーされません。

使用する追加のラベルまたはブランチ値を含めるには、**\[Add another]**&#x3092;クリックします。

**\[条件の追加]**&#x3092;クリックします。

### **ClickUpアクション** <a href="#id-1t3h5sf" id="id-1t3h5sf"></a>

Webhook アクションを除くすべての[自動化アクション](https://help.clickup.com/hc/en-us/articles/6312097314199-Use-Automation-Actions)は、GitHub トリガーを使用してタスクを更新するために使用できます。

自動化アクションを既存のタスクに適用するには、コミット、ブランチ、またはプル リクエストをリンクして、タスクを GitHub リポジトリにリンクしておく必要があります。 タスクの作成アクションは唯一の例外であり、新しいタスクを事前にリンクすることはできません。

### **GitHub でのアクション** <a href="#id-4d34og8" id="id-4d34og8"></a>

GitHub に新しい問題を作成す&#x308B;**\[Create Issue]**&#x30A2;クションでAutomationsを使用できます。

たとえば、バグフォームが送信され、特定のリストにタスクが作成されると、自動化によって Github に問題が作成されます。


---

# 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:

```
GET https://manual.dxable.com/clickup/integrations-and-clickup-api/integrations/github-automations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
