htl-leonding / 2018-leonie

Leonie - the avatar of HTL Leonding
0 stars 0 forks source link

Discord Webhook #4

Closed stefnotch closed 4 years ago

stefnotch commented 5 years ago

Super useful for us when this repo is used more frequently.

Copied from here and improved

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

    image1

  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!

    WebhookDiscord

Step 2 - Set up the webhook on Github

Use this URL https://discordapp.com/api/webhooks/534345745327718420/iJ7zCXEdxr09zyHbz_IwuduiEn5K8juwrxh5JOUFdXre2GoUw0bP7oGb--1TMGpulnzL/github

  1. Navigate to your repository on Github, and open the Settings

    Settings

  2. Select Add Webhook

    Add

  3. Paste in the webhook url and append /github to the end. Select "Send me everything", and then Add Webhook. Make sure to set the Content type to application/json

    WebhookSettings

  4. Test it by updating something or starring the repository! If it works, you're all set!

    Star

stefnotch commented 4 years ago

https://github.com/htl-leonding/2018-leonie/tree/master/Documents/2019-11-08