---
title: "GitHub と CI の Loop のための Comma · Comma ブログ"
description: "チャットで Comma に頼んで、課金の変更、失敗したチェック、リリース後の不具合をリポジトリで見張る Loop を書かせましょう。Worker を起こすのは、あなたの条件が満たされたときだけです。"
url: https://comma.surf/ja/blog/comma-for-github-loops
language: ja
---

[ブログに戻る](https://comma.surf/ja/blog)

Comma Team · 2026年11月23日 · 1 分で読めます

# GitHub と CI の Loop のための Comma

チャットで Comma に頼んで、課金の変更、失敗したチェック、リリース後の不具合をリポジトリで見張る Loop を書かせましょう。Worker を起こすのは、あなたの条件が満たされたときだけです。

[はじめる](https://app.comma.surf/) [ドキュメントを読む](https://comma.surf/ja/docs/salix/loops)

エンジニアリングのアラート疲れのほとんどは、大ざっぱなツールから生まれます。GitHub はコメントのたびにメールを送り、Slack のボットはビルドが通るたびに通知し、cron で動く AI スクリプトは「何も起きていません」と結論づけるためだけに 10 分ごとにトークンを消費します。

**Salix Loop** なら、気にしているリポジトリの条件を普段の言葉で正確に説明するだけです。Comma は Salix 上で常時動く軽量な Loop をコンパイルし、**ルールが実際に満たされたときだけ Worker を起こします**。

## GitHub の Loop の仕組み

1. `Plugins` で **GitHub** を接続します（アラートをチャンネルや Issue に送りたい場合は **Slack** や **Linear** も）。
2. Router とのチャットで、監視の条件と行動を伝えます。
3. Comma は Loop を書き、ロジックをそのまま表示し、Tasks レールに **On updates** の Task を作ります。
4. 条件が満たされるまで、大きなモデルは一度も呼ばれません。満たされると、Worker が調査を行って結果を報告します。

## 効果の高い GitHub の Loop 4 つ

### 1. リスクの高いパスの監視（課金、認証、マイグレーション）

text

```
Watch acme/api on GitHub. Wake me only when a pull request modifies
files under billing/, auth/, or priv/repo/migrations/. Summarize what
changed, check whether a migration manifest or test was included, and
ping me in chat.
```

リポジトリの UI の細かな修正をすべて読まなくても、重要な部分をすぐにレビューできます。

Loop は、プルリクエストがリスクのあるパスに触れるまで静かにしていて、触れたらそのリスクを説明します。

### 2. メインラインの CI 失敗の調査役

text

```
Watch the main branch workflows on acme/api. Ignore canceled runs.
If a required job fails on main, pull the failing step log, identify
the likely breaking commit from the last 5 merges, and open a thread
in #eng-ci with the exact error and suspected PR.
```

誰かに 4,000 行のログをクリックしてたどらせる生の赤い Slack アラートの代わりに、チームは失敗したアサーションとコミットの差分を 60 秒で受け取ります。

### 3. 依存関係とセキュリティアドバイザリの監視

text

```
Every weekday morning, check Dependabot and security PRs across
acme/api and acme/web. Group safe patch bumps separately from major
upgrades, check if CI passed on each, and line up a single review list
in my morning Routine.
```

### 4. マージ後のリリースの追跡

text

```
Watch our release workflow after a PR with label "customer-facing"
merges to main. Wait until the production deployment check turns
green, then draft a short release note with the PR link and put it
in Needs Review before posting to #changelog.
```

## Loop の編集、一時停止、終了

すべての Loop は、目に見える **On updates** の Task として存在します。

- Task を開くと、トリガーの履歴とコードそのものを確認できます。
- Comma に「課金の Loop を絞って、テストフィクスチャ内の変更は無視して」と伝えれば、その場でフィルターが更新されます。
- 「リリースの Loop を月曜まで止めて」と伝えるか、マイグレーションやローンチが終わったら Task をキャンセルします。

## きれいな Loop のためのベストプラクティス

- **まず狭くふるい分ける**：LLM を起こす前に、リポジトリ、パスの接頭辞、ラベル、失敗の状態で絞り込みます。
- **観察と行動を分ける**：Loop には調査、要約、**ドラフト**の PR や Issue の作成までを任せ、マージ、ロールバック、外部への告知は **Needs Review** に残します。
- **朝の Routine と組み合わせる**：緊急の失敗（`main` が赤、課金の差分）はすぐに知らせ、急ぎでないリポジトリのまとめは午前 8 時 30 分の Routine にまとめます。

**次に読む：** [オンコールとバグのトリアージのための Comma](https://comma.surf/ja/blog/comma-for-on-call) · [Comma のセルフホストと BYOK](https://comma.surf/ja/blog/self-hosting-comma)

ガイド

[ブログに戻る](https://comma.surf/ja/blog)

共有

## 関連記事

2026年12月3日

### [Comma 101](https://comma.surf/ja/blog/comma-101)

2026年12月2日

### [管理者のための Comma](https://comma.surf/ja/blog/comma-for-admins)

2026年12月1日

### [チャットアプリの中の Comma](https://comma.surf/ja/blog/comma-in-your-chat-apps)

## Try Comma, Now.

[はじめる](https://app.comma.surf/)
