🐙
ZapierでAppleのデバイスの種類に追加や削除があった時にSlack通知する
やりたいこと
Appleの提供しているデバイスの一覧に変更があった時にSlackに通知したい。
前提
デバイスの一覧は https://gist.github.com/adamawolf/3048717 を参照することとします。
このGistをwatchしている前提で、GitHubアカウントのメールアドレスをTriggerに使います。
イメージ
Zapサマリ
Trigger : Gmail
- Trigger Eventは
New Email Matching Search - Search Stringは
adamawolf/Apple_mobile_device_types.txt
Action1 : Filter by Zapier
- 「Adam WolfがFromで"Added" "Removed" "Fixed"という文字が含まれていたら」
- Only continue if...
-
From Name(Text) Exactly matchesAdam Wolf -
Body Plain(Text) ContainsAdded
-
- Or continue if...
-
From Name(Text) Exactly matchesAdam Wolf -
Body Plain(Text) ContainsRemoved
-
- Or continue if...
-
From Name(Text) Exactly matchesAdam Wolf -
Body Plain(Text) ContainsFixed
-
Action2 : Slack
- 「Slackチャネルに通知する」
- Action Eventは
Send Channel Message - Message Textは 「Apple_mobile_device_types.txtに新しいコメントがありました\n----\n{{Body Plain}}」
Discussion