0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GithubのコミットやPR作成通知をSlackに投げる 個人メモ

Posted at

概要

  • GithubのブランチごとのコミットやPR作成通知をSlackに投げる方法をまとめる。

ご注意

  • 共有ワークスペースでこの作業を行うと他の人の迷惑になる可能性があります。
  • 筆者は自身専用のワークスペースで作業を行っています。

方法

  1. Slackにて任意の名前のチャンネルを作成

  2. GithubのSlackアプリを当該ワークスペースに導入

  3. 下記のコマンドを先に作成したチャンネルに投稿(普通に人とやり取りするときにメッセージ打ち込むところに打って送信)

    /github signin
    
  4. 当該チャンネルにGithubのSlackアプリから「Connect GitHub account」のリンク or ボタンが送られるのでクリックして遷移先画面でGithubの認証情報を入力してログイン

  5. 下記のコマンドを先に作成したチャンネルに投稿

    /github subscribe オーナー名/リポジトリ名 reviews,comments,branches,commits:all
    
  6. これで当該のリポジトリにコミットやPR作成が行われたときに当該のSlackチャンネルに通知が来るようになる。

  7. ちなみに筆者は各リポジトリ毎にチャンネルを分けて通知するようにしている。

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?