-
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!
-
Star
(1,147)
You must be signed in to star a gist -
Fork
(152)
You must be signed in to fork a gist
-
-
Save jagrosh/5b1761213e33fc5b54ec7f6379034a22 to your computer and use it in GitHub Desktop.
luisangeldevops
commented
Jul 17, 2024
via email
is it possible to ping/mention/notify everyone or certain people using the webhook?
Hi. Have you found a way to achieve this?
You can, but not natively. You can either use a bot that can automatically respond with a ping or (a bit trickier) use a bot and a private channel for the Girhub-webhook, so that GitHub sends the message to your private Discord channel and the bot "copies" this message and adds mentions.
Thank you. Do you know of any public bots that can do either of these? (I only tried YAGPDB, but even custom commands doesn't work since it doesn't listen for webhooks)
(Also, a few minutes ago someone shared this with me. It just seems like a bit of a pain to set up)
I ended up using this Github Actions: https://github.com/marketplace/actions/actions-status-discord
You can, but not natively. You can either use a bot that can automatically respond with a ping or (a bit trickier) use a bot and a private channel for the Girhub-webhook, so that GitHub sends the message to your private Discord channel and the bot "copies" this message and adds mentions.
Thank you. Do you know of any public bots that can do either of these? (I only tried YAGPDB, but even custom commands doesn't work since it doesn't listen for webhooks)
(Also, a few minutes ago someone shared this with me. It just seems like a bit of a pain to set up)
I would suggest Sapphire with the new Sticky Message feature for "reply with ping".
It could also be possible to use the Automod feature but I don't know if bot-messages (what a webhook message is) are recognized.
I could make you a custom bot that does this easily if you want (@thelukez
)
Thank you for the advice and the offer @The-LukeZ 🙏
I opted to try @mrgoonie 's suggestion, and it is working flawlessly. Thank you
Hello I have a problem I cant see the description when i commit to main
Hello I have a problem I cant see the description when i commit to main
Descriptions won't show up. I also noticed this.
I ended up using this Github Actions: https://github.com/marketplace/actions/actions-status-discord
Will I be able to show the entire commit message using this?
What I get on discord:
It truncates a large portion of my commit messages. This is how I show progress on my project(s).
I ended up using this Github Actions: https://github.com/marketplace/actions/actions-status-discord
Will I be able to show the entire commit message using this?
What I get on discord:
It truncates a large portion of my commit messages. This is how I show progress on my project(s).
It totally depends on you, grab all commit messages in your action steps and pass them to this action in "description" param
I don't need that, just want the PR title, so this is what I got:
Got it working:
- delete hook
- create new hook
- add /github at the end,
- select content type to
application/json
thx
FYI - If wanting to send GitHub messages to a Discord forum thread, add "/github?thread_id=[thread number here from thread URL]"
Ty for this. Anyone know how to filter pull requests only? It would be ideal to have pull request opened and closed only to avoid clutter.
How do I have this webhook pull posts from another discord server and post into mine? is that even possible?
Got it working:
1. delete hook 2. create new hook 3. add /github at the end, 4. select content type to `application/json`
my man <3 +1
Yes it's working <3
Got it working:
1. delete hook 2. create new hook 3. add /github at the end, 4. select content type to `application/json`
my man <3 +1
Yes it's working <3
It works for me, thanks
Very helpful, thank you. In my case I only needed it for issue ticket integration, so I selected "Let me select individual events" 👍🏼
Works perfectly!
This is perfect for not needing to update my partners each time I make changes. Thank you for this! 🎉