packagedrone icon indicating copy to clipboard operation
packagedrone copied to clipboard

Mattermost integration

Open ctron opened this issue 9 years ago • 3 comments

Implement a integration for sending events from Package Drone to Mattermost [1].

Events like artifact added or remove could be sent.

[1] http://www.mattermost.org/

ctron avatar Jan 22 '16 11:01 ctron

I think a general API would be better. So people (like me and me company) can integrate this in their chat systems for example Slack or Hipchat ? I would recommend sth like (web-)hooks.

kdoteu avatar Jan 22 '16 12:01 kdoteu

Good point. I know that Mattermost's push events are compatible with Slack. Don't know about HipChat though.

The question is, how can the Package Drone side be made compatible? Because AFAIK, web-hooks would mean that Package Drone does define the format and all other would need to implement that. Which I guess won't happen for some time.

ctron avatar Jan 22 '16 12:01 ctron

Maybe a configuration file uploaded to a channel (or every channel) could define the hook parameters. i.e.

{
  host:"http://chat.server.com",
  params:[
    p1:"${messageBody}",
    p2:"${channel}"
  ]
}

doggy-dev avatar Mar 17 '18 07:03 doggy-dev