I have a programming team that shares code using GitHub, but primarily communicates through Discord. How can I setup my team's Discord to automatically include updates about GitHub commits and pull requests?
Integrating GitHub updates into a Discord channel can be done with webhook updates.
Via Discord - Intro to Webhooks
- Get the webhook URL for the server/channel you want to receive messages:
- Open the webhook settings in your GitHub repository settings (Settings > Webhooks)
Click the "Add webhook" button, and enter the Discord-generated URL in the "Payload URL" section.
To ensure the webhook displays messages properly, make sure to append '/github' at the end of your URL.
For content type, stick with application/json, then customize which kind of events trigger webhook messages.
- Click the last "Add webhook" button beneath the event notifications customization option, and you're all set!
I would like to add that as of now, Discord web hooks can receive Slack notifications. Simply add /slack
to the web hook URL. This greatly increases the number of apps Discord can receive notifications from.
-
1