Are you interested in receiving all of your GitHub notifications on your Discord server?
Here's how to do that.
We will go over how to get GitHub notifications in Discord Server in this article. Now, let's begin.
To begin, I'm assuming you have a Discord and GitHub account.
Index
Let's start by creating a Discord Server.
Creating Discord Server
Now, the discord server is ready, if you want to get Github Notification notices delivered to a separate text channel, you may create a new one.
Now, let's create a GitHub repo.
Creating GitHub Repo
- Click here to create a new GitHub repo.
- Give your repo a name and click
Create Repository
.
Now, our GitHub repo is also ready, now, it's time to setup our Discord server to receive GitHub notifications.
Receiving Notifications
- Click on the ⚙️ icon just right of the text channel where you want to receive notifications.
- Next, click on
Integrations
and then click onCreate Webhook
. - Now, a new webhook is created, if you want to change it's name, you can do so. But I'll leave it as it is.
- Then click on
Copy Webhook URL
.
Once the Webhook URL
is copied,
- Go to your GitHub repo and click on settings.
- Then click on
Webhooks
. - Next, click on
Add webhook
. Then you might need to confirm your password. - Now add the
web hook
URL with/github
on the end inPayload URL
. - Now, set the content type to
application/json
. - In the
Which events would you like to trigger this webhook?
section, selectSend me everything.
to receive every GitHub notification. - Now click on
Add Webhook
, and now, you can receive all GitHub notifications in your discord server .🥳🥳🥳
If everything was set up perfectly, then you should see the
green tick
on the webhook.
Testing
For testing, let's clone the clone and push a commit.
- Clone the repo
git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git
- Create a new random file, I will create
README.md
with following content.
# Testing
- Run the following commands
git add .
git commit -m "Added readme.md"
git branch -M main
git push -u origin main
- Now, go to your discord server and you should see something like this.
Conclusion
This was a short article on how to receive GitHub notification to your Discord Server. Hope you like this article. If you got any problem or have any feedback or suggestion for me, comment it.
Connect with me:
Top comments (4)
Great bro
Thanks
collab ??
You mean to do collab with me.