---
title: github/discord webhook
description: tutorial to create a webhook to receive github messages on discord
---
# discord webhook
got a github repository? love discord? get notifications from github right in your favorite server!

1. find the discord channel in which you would like to send commits and other updates
2. in the settings for that channel, find the webhooks option and create a new webhook. note: do not give this url out to the public. anyone or service can post messages to this channel, without even needing to be in the server. keep it safe!

# step 2 - set up the webhook on github
1. navigate to your repository on github, and open the settings

2. select add webhook

3. paste in the webhook url and append `/github` to the end. select "send me everything", set the type to `application/json`, and then add webhook

4. test it by updating something or starring the repository or using the below code! if it works, you're all set!
```shell
# Push an empty commit
$ git commit --allow-empty -m "Trigger Build"
```

[//]: # (dark theme)
{%hackmd f7VLvUw9SUaiu_Vgrm3B9g %}