Sentry
Add Sentry notifications via a new WebHook in Ministry.Chat This script works for the sentry.com and self-hosted version.
In Ministry.Chat go to "Administration"->"Integrations" and create "New Integration"
Choose Incoming WebHook
Follow all instructions like Enable, give it a name, link to channel etc. Bonus: add https://avatars.io/twitter/getsentry/medium as Avatar URL
Set "Enable Script" to true and enter the javascript in the "Script" box
Press Save changes and copy the Webhook URL (added just below the script box)
Go to your Sentry project, ie. https://app.getsentry.com/< organization >/< project >/settings/plugins/ and enable the "WebHooks" integration. It's in the project "settings" under All Integrations. A WebHooks integration is added there when enabled.
Add a new webhook by pasting the Ministry.Chat url you've copied in step 5 in the "Callback URLs" textarea (1 URL per line) and press the Save Changes button
Test the webhook with the "Test Configuration" button in Sentry, a Test Results box should appear below, with more info (success or failure)
Paste this in javascript in the "Script" textarea on Ministry.Chat WebHook settings
Use the console.log(request.content) line to debug the json content, posted by Sentry.
Last updated