dcppc / uncle-archie

Uncle Archie is a home-brewed continuous integration server for pull request checks and push-to-deploy functionality. https://pages.charlesreid1.com/uncle-archie
Other
1 stars 0 forks source link

Slack integration #41

Open charlesreid1 opened 6 years ago

charlesreid1 commented 6 years ago

We need to create an example hook function that integrates with Slack (credentials provided in an analogous way to the way the Github credentials are provided - a private, non-version-controlled flask config file). (Could also have a Twitter bot integration, so that a twitter account would post a notification triggered by a Github webhook.)

For example, post an alert to the #alerts channel when private-www or four-year-plan or use-case-library are updated. centillion may also have some useful integrations.

(Note: this will be useful for integrating a centillion live-stream slack channel integration.)

If we look at the basics of creating a Slack app (https://charlesreid1.com/wiki/Slack), we start by deciding which of the five types of Slack app we want. We want a bot that will send messages to Slack via webhook; this will be triggered by webhooks from Github.

The bot will live in the NIH DCPPC userspace. It will have the username Florence Python. The Slack App name/ID will be Uncle Archie. The API client token and secret token will come from the person who creates the Slack app, which will be @charlesreid1.