I really love Discord and use it as a communication tool for personal projects with my friends and teammates. Sometimes I wonder: Do we have an App for Discord equivalent to GitHub App for Slack (former Pull Panda)?
So, I noticed that actually we don’t have it, for simple reasons: We can integrate GitHub Webhook to send events directly to Discord Webhook. Simple and functional. So, let's do it!
1. Create the Webhook
The first step is to create the Webhook on your Discord server to receive the events from GitHub:
- Go to your discord
Server Settings; - Click on the
Integrationsitem on the sidebar; - Hit the
Create Webhookbutton; - Fill the
namefield (I usedGitHub Integration) and select a channel to post the messages; - Click on
Save Changesbutton; - Then click on
Copy Webhook URL.
2. Set up the Webhook on GitHub
Now, you’ll need to configure GitHub to send the events to Discord Webhook:
- Navigate to your organization (or repository) on GitHub
- Click the
Settingstab; - Click the
Webhooksitem on sidebar; - Hit the
Add Webhookbutton on the top of the page; - Fill the
Payload URLfield with the URL copied in the step above (Step 1); - Add
/githubat the end of the URL (It’s very important!); - In
Content TypeselectApplication/JSON; - You can leave the
Secretfield empty; - In
Event Triggersif you select:-
Just the push eventyou’ll receive new pushed commits. -
Everythingyou’ll receive everything, like new Pull Requests opened, workflows, etc. -
Let me select individual eventsyou can choose.
-
- Hit the
Add Webhookbutton.
You’re all set! You’ll get GitHub events notifications on your Discord channel.
If you have any questions, you can reach me on Twitter, or you can just use the comments section below 🙂
I hope I was helpful, and thank you for reading.



Top comments (0)