-
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!
Last active
July 21, 2024 06:29
-
-
Save jagrosh/5b1761213e33fc5b54ec7f6379034a22 to your computer and use it in GitHub Desktop.
Simple Github -> Discord webhook
Got it. But damn Discord should say something about this, because it let
you copy the webhook url and don't say a word about /github. I also get
that is some GitHub stuffs, but is not clear to add /github to the discord
webhook at all.
El mié., 17 de julio de 2024 11:23 a. m., Robin Singh <
***@***.***> escribió:
… ***@***.**** commented on this gist.
------------------------------
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.
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/jagrosh/5b1761213e33fc5b54ec7f6379034a22#gistcomment-5124477>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJKZUHUKO7EBA6STJE66LMLZM2D5XBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVA2DANRWGA3TEOFHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.Now you have two webhooks which are mapped to two different GitHub events, but with a single domain name.