Step-by-Step Guide to Setting Up GitHub to Discord Webhooks

By Collin Herber | 2023-11-24 | 3 min read

Step-by-Step Guide to Setting Up GitHub to Discord Webhooks

Looking to get GitHub updates in your Discord chat? This quick guide has you covered on setting up a webhook that’ll bring your code pushes and pull requests straight into your favorite server, keeping your team in the loop with every commit.

Create the Github Webhook in your Repository/Organization

  1. Ensure you have the ‘Manage Webhooks’ permission on your Discord server.
  2. Open the server settings by clicking on the server name at the top right, then select ‘Server Settings’ from the dropdown menu.
  3. In the sidebar, click on ‘Integrations’, then select ‘Webhooks’.
  4. Click on the ‘Create Webhook’ button (or ‘New Webhook’ if you have existing webhooks). Visual aid for step to add webhook
  5. Name your webhook and select the channel you want messages to be posted to.
  6. Optionally, set a profile picture for the webhook.
  7. Copy the Webhook URL for later use.

Creating a GitHub Webhook for Discord Notifications:

  1. After creating a Discord webhook, go to your GitHub repository’s settings.
  2. Click on ‘Webhooks’, then ‘Add webhook’.
  3. Paste the Discord webhook URL in the ‘Payload URL’ field and append /github to it.
  4. Set the ‘Content type’ to ‘application/json’.
  5. Select the events that should trigger the webhook notifications.
  6. Click ‘Add webhook’ to complete the process.

Testing the GitHub Webhook

  1. Perform an action like creating an issue in the GitHub repository you set the webhook for.
  2. You should receive a notification in your Discord channel.
  3. The same will occur for other events like push commits or pull requests.

This guide should help you set up Discord and GitHub webhooks to receive notifications in your Discord server. Remember to adjust webhook settings according to your needs, like filtering specific events from GitHub to Discord.