If you have any questions feel free to drop them in the comments section below and I'll be glad to answer them. It will work the same way when pushing commits, creating PRs. You should immediately receive a notification from discord on whatever device you have installed it on. To test the webhook we can perform a simple action such as creating an issue on the repo which we just added the webhook. If you have done it correctly you should receive a similar notification to this Personally, I want everything.Īfter you are done you can click the green button at the bottom labeled Add webhook to complete the process. Set the Content type to application/json and finally choose the events which should trigger the webhook. Paste the link we copied earlier from discord in the Payload URL and make sure to add /github at the end or it will not work. Head over to your repo then settings => Webhooks => Add webhook You can click on Copy Webhook URL to copy the link which we are going to use on our GitHub repository.Īfter creating the webhook the next thing is to add it to your github repository from which you would like to get notifications. You can give your webhook a name and also choose which channel it will be posting to. To create a webhook, head into your server settings => integrations => New webhook You need to have a discord server where we will add the webhook.Ī webhook is basically a link that will allow other applications to post into discord. git help utility for other useful commands. git help config to store your preferred orgs, repos, user and feeds. git help info for commands that provide information about the bot itself. You can access specific parts by typing: git help github to fetch information from GitHub. You need to have a GitHub account with a repository. In this section you'll find info and usage of my commands.This can be useful if you find the email notifications not as instant as you'd want them to be. GitHub provides us with a way to allow other applications such as discord to connect it and receive POST requests whenever any action is done on your repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |