thiagowfx's avatar

Β¬ just serendipity πŸ€ (not just serendipity)

Slack: Github bot: post notifications

β€’ 107 words β€’ 1 min β€’ updated

⚠️ This post is over one year old. It may no longer be up to date or relevant. Opinions may have changed.

Assume your organization has the Github bot integrated with Slack, and it’s already properly configured.

Assume you have a channel called #team-reviews.

Problem statement: subscribe the github repository my-org/my-repo to post updates to that channel.

As per the documentation, use the /subscribe and /unsubscribe commands. Send them in the #team-reviews channel:

/github subscribe my-org/my-repo

βœ… Subscribed to my-org/my-repo. This channel will receive notifications for issues, pulls, commits, releases, deployments

In case you wish to subscribe to only pull requests and commits, follow up with:

/github unsubscribe my-org/my-repo issues,releases,deployments

βœ… Subscribed to my-org/my-repo. This channel will receive notifications for pulls, commits

Repeat for as many repositories as needed.