This is a simple API that allows you to have changes, commits, and pull requests from GitHub sent to a Discord webhook.
-
Create a Discord webhook & copy the URL. The URL should look something like this:
https://discordapp.com/api/webhooks/1234567890/abcdefghijklmnopqrstuvwxyz
. -
Trim off the first parts up until the numbers, and the last parts after the letters. The URL should now look something like this:
1234567890/abcdefghijklmnopqrstuvwxyz
. -
And then add the api location on the website, like so:
https://example.com/api/git/?hook=1234567890/abcdefghijklmnopqrstuvwxyz
. -
Add the URL to your GitHub repository's webhook settings.