mirror of
https://github.com/certera-io/certera.git
synced 2026-04-25 03:05:52 +03:00
[GH-ISSUE #25] Rocket chat webhook integration #22
Labels
No labels
bug
feature-request
feature-request
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certera#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gik000 on GitHub (Jun 9, 2021).
Original GitHub issue: https://github.com/certera-io/certera/issues/25
It would be very nice to manage also rocket chat integration as it is done with slack.
@certeraio commented on GitHub (Jun 9, 2021):
Hi @gik000,
Thanks for the suggestion. I don't know enough about rocket chat, but extending things is pretty simple. The templates exist here: https://github.com/certera-io/certera/tree/master/src/Certera.Core/Notifications/Templates
If you submit a PR for the templates for rocket chat, I can take a look at making it more extensible. Also, do you know where the webhook documentation for RC is? I'd be curious to know if there is any special authentication for the endpoint too.
@gik000 commented on GitHub (Jun 10, 2021):
Hi
Thanks for your quickly reply, at the end, yesterday I have found a way to bypass this problem.
You will find it documented on my blog
https://www.unmoscerinonelweb.com/blog/certera-io-notification-via-slack-webhook-on-rocketchat/
All you need to do is to POST on another webhook in the way Rocket Chat require, as you have done for Slack.
Consider this link https://docs.rocket.chat/guides/administrator-guides/administration/integrations
I think that the template should be very simple.
Take a look to this POST request that works like charme.
curl -X POST -H 'Content-Type: application/json' --data '{"username":"Certera","text":"Example message","attachments":[{"title":"Rocket.Chat","title_link":"https://rocket.chat","text":"Rocket.Chat, the best open source chat","image_url":"/images/integration-attachment-example.png","color":"#764FA5"}]}' https://rocketchat-web-url.net/hooks/AsnasidjsaiiAShi10as/YohasoSasdlkaavcSHSAm2hyoEDIT:
the url given in the example POST via CURL is provided by RocketChat,
when you creates a webhook to expose (in a way similar to slack).