Using web hooks we can post updates of our github repo in a discord channel. In this blog post I will show you how to do this.
Step 1:
Create webhook in your discord server if you are already having one use that one
it will look something like this
https://discord.com/api/webhooks/104433093165....
or you can create that in
Channel settings -> Integrations -> Webhooks -> Create
copy that webhook url from here
Step 2:
Go to your github repo that you want to get in your desired channel
open repo -> repo settings -> webhooks -> add webhooks
Step 3:
Add webhook by adding /github
to the end of your url then your url will be something like this https://discord.com/api/webhooks/1044330931659477043/asdhhsadn_3A/github
and change content type to aplication/JSON
then submit
That's it you have successfully created a webhook that pushes your commits to your discord channel and that will look something like this