Create a forums channel in your discord server, and deny create posts
and send messages in posts
permissions for @everyone
Go to the channel settings, integrations, webhooks, create webhook, click copy webhook URL
and save it somewhere so we can use it later!
Create a post in the forums channel for a Github repository that you want to receive updates for. Make sure that Developer Mode is enabled. Copy the created post's id and save it somewhere so we can use it later!
Copy the POST'S ID, not the forums channel's ID!
Go to your repository in Github, select the settings tab, webhooks, and add webhook!
-
Click Add webhook
-
Pass in
WEBHOOK_URL/github?thread_id=POST_ID
in the payload url. (replaceWEBHOOK_URL
andPOST_ID
with the ones you saved before) -
Select
application/json
for the content type -
Click Add webhook when you are done
yoo thanks!