Add WebHook Integration with Discord (OD-872)
Andrew Lalis opened 3 years 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 3 years 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 3 years 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 3 years ago

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

  • Robin Shen added to iteration "7.5.0" 3 years ago
  • OneDev changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 3 years ago

    State changed as code fixing the issue is committed

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

    State changed as build #2972 is successful

issue 1/1
Type
New Feature
Priority
Normal
Assignee
Iterations
Issue Votes (1)
Watchers (5)
Reference
OD-872
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover