In the modern collaborative work environment, GitHub and Slack are indispensable tools used by many teams. With a straightforward integration, you can set up GitHub to send pull request notifications directly to your Slack channels. Let’s walk you through the entire process, starting with the installation of the GitHub app in Slack.
Add GitHub App to Slack
If GitHub is not yet installed in your Slack, start by adding the GitHub app. You can do this by visiting the ‘Apps’ section in Slack, or by visiting the GitHub for Slack page and clicking on ‘Add to Slack’. You will need to select the workspace where you want to install the GitHub app.
Authenticate Your GitHub Account with Slack
After installing the app, the next step is to link your GitHub account with Slack. This can be achieved by typing
/github signin
in your desired Slack workspace. You will be directed via a direct message to GitHub’s OAuth to authenticate.Invite GitHub App to Your Slack Channel
Now that your app is installed and authenticated, it’s time to invite the GitHub app into your specific Slack channel. This can be accomplished by typing
/invite @Github
into your desired channel.Set Up Pull Request Notifications
Finally, set up notifications for pull requests from the specific repository you’re interested in. You can subscribe to these notifications by typing
/github subscribe myorg/myrepo pulls
into your Slack channel. Remember to replace ‘myorg’ and ‘myrepo’ with your actual GitHub organization and repository names.
And voilà, you are all set! You will now start receiving notifications on your Slack whenever there are updates on your subscribed GitHub repository’s pull requests.