rallytime / tamarack

A bot built with Tornado to automate common pull request tasks. Specifically designed for use with the SaltStack repositories.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ability to post to slack when new branch is created

rallytime opened this issue · comments

We want to be able to simply notify people when a new branch is created in the repo. This can be simple, using Slack's Incoming Webhooks.

Workflow:

  • A new branch is created upstream in GH
  • Event is sent to Tamarack
  • Tamarack posts the message to slack

Tasks:

  • Update GH token perms to include branch creation events
  • Create Slack App
  • Update config/env vars to take a Workspace Webhook URL for Slack
  • Add event handler for branch creation events
  • Compose json POST message and send to slack
  • Docs
  • Tests
  • Deploy!