-
Find the Discord channel in which you would like to send commits and other updates
-
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!
-
-
Save jagrosh/5b1761213e33fc5b54ec7f6379034a22 to your computer and use it in GitHub Desktop.
Hello all past and future!
I made a Discord bot to make this process a bit easier: GitHub Bot for Discord.
Just add the bot to your Discord server and use /github
commands to create/delete subscriptions to various GitHub repo events. It uses the minimum permissions needed and should help make this process easier! ✅
Hello all past and future!
I made a Discord bot to make this process a bit easier: GitHub Bot for Discord.
Just add the bot to your Discord server and use
/github
commands to create/delete subscriptions to various GitHub repo events. It uses the minimum permissions needed and should help make this process easier! ✅
I love that this is a thing! Keep up the good work!_
I tried this, Github shows the requests going out with 204 responses coming back, but nothing appears in discord?
I think you haven't add /github
at the end :)
worked without a hitch. thanks.
any idea why is necesary to add /github at the end?? It work, but...
any idea why is necesary to add /github at the end?? It work, but...
Because it helps GitHub to map to a specific endpoint in case of discord.
You can have multiple endpoint on a single domain.
You can achieve this by creating your own endpoints.
E.g. you can create a simple node.js server which has two endpoints /a
and /b
that do different tasks.
- Host your node js server on service like render. It will provide you with a domain.
- Create two different webhooks in GitHub.
- For each webhook, keep the domain name same but add different endpoints for different GitHub event.
Now you have two webhooks which are mapped to two different GitHub events, but with a single domain name.
Is it possible to disable the pushing feature for private repos?
![image](https://private-user-images.githubusercontent.com/70103896/332495086-a8beb506-f05b-4ae9-8c15-ca51ff3aa3f1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2NjM3NzgsIm5iZiI6MTcyMTY2MzQ3OCwicGF0aCI6Ii83MDEwMzg5Ni8zMzI0OTUwODYtYThiZWI1MDYtZjA1Yi00YWU5LThjMTUtY2E1MWZmM2FhM2YxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIyVDE1NTExOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRkOWY3ODc1ZGI5MzM2Yzc4ZDY3OWQ4ZjlmMDNlODVmZWJmYTUwNWU4ODFmYjk1ZDY5MzQ4ZmQxNDVjMTFlOTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.cKddpQGDdz4rTv1_0ep0Z1pSUHXTXbVlCEzNLIlsngI)