LoginSignup
2
0

More than 1 year has passed since last update.

GitHubとSlackを連携させて通知を受けとるためのコマンド集

Last updated at Posted at 2021-01-24

Slackの公式にも情報は載っていますが、よく忘れるので基本的なコマンドや通知機能の一覧を備忘録としてまとめておこうと思います‪‪。

GitHub × Slack連携するための基本的なコマンド

通知 / 解除させたいSlackチャンネルで下記のコマンドをPostします。

リポジトリ連携 / 連携解除する

/github subscribe owner/repository
/github unsubscribe owner/repository

ownerrepositoryには対象とするGitHubリポジトリのオーナー名、リポジトリ名をそれぞれ指定します。

通知機能を購読 / 購読解除する

/github subscribe owner/repository [feature]
/github unsubscribe owner/repository [feature]

[feature]に指定できる通知機能の一覧はこの記事の下の方にまとめています。

全ての機能を購読したい場合

/github subscribe owner/repository issues,pulls,releases,deployments,reviews,comments,branches,commits:all

現在購読しているリポジトリの機能のリストを表示する

/github subscribe list features

通知機能の一覧

[feature]に指定できる通知機能の一覧です。

feature 説明 デフォルト通知
issues issueのオーブン / クローズ
pulls PRの作成 / マージ
statuses プルリクエストのStatus
commits default branchに対するコミット
deployments deploymentsステータスの更新
public リポジトリのpribateからpublicへの変更
reviews PRのレビュー ×
comments PR / issueのコメント ×
branches branchの作成と削除 ×
commits:all 全てのブランチに対するコミット ×
+label:my-label 指定したラベルのissue、PR、コメント ×

参考

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0