Projects onedev server Issues #872
#872  Add WebHook Integration with Discord
Released
Andrew Lalis opened 2 months ago

We previously worked with Gitlab, which allowed us to have project updates automatically get relayed to a Discord channel. Now, I can partially achieve this by making my own middleman HTTP server that receives webhook messages from OneDev, and it then composes Discord-compatible messages from that. Would it be possible to add this sort of platform-specific notification/integration support?

Here's Discord's webhook documentation.

On a side-note, this might be more suitable for a plugin, but I am not really sure where to start if I were to make something like this. Perhaps someone could point me in the right direction?

Daniel Gollings commented 2 months ago

I'd like the same thing for Twist, and I'm sure someone else will or has already mentioned Slack or Telegram. Maybe @robin could give us some tips on how to create a plugin?

In particular some advice on where to start, for example near the e-mail notifications

Thinking of the e-mail notifications, extending that to handle multiple endpoints/sinks/products would likely make sense? Then others users just need to add an API key (for example)

without looking at the code, I'd guess it looks something like this

events -> e-mail notification
events -> webhook calls

or events -> e-mail+webhook

especially in the case of the latter, extending that to handle multiple notification channels seems like it wouldn't be a huge task?

Robin Shen commented 2 months ago

This should be relatively easy to add more notification channels. I will add necessary extension point to make this task straightforward.

Daniel Gollings commented 2 months ago

Thanks, would gladly help creating a Twist (Slack alternative) and likely Telegram channel

Robin Shen added to milestone "7.5.0" 3 weeks ago
OneDev changed state to 'Closed' 3 weeks ago
Previous Value Current Value
Open
Closed
OneDev commented 3 weeks ago

State changed as code fixing the issue is committed

OneDev changed state to 'Released' 3 weeks ago
Previous Value Current Value
Closed
Released
OneDev commented 3 weeks ago

State changed as build #2972 (7.5.0) is successful

issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
Milestones
Issue Votes (1)
Watchers (5)
Reference
issue onedev/server#872
Please wait...
Page is in error, reload to recover