Skip to content

What's the recommended way to implement Slack notifications #1147

Answered by casperisfine
airhorns asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Harry 👋

The recommended way is indeed to send webhooks to a chatbot app that will then act as the gateway.

The outgoing Webhooks are indeed under-documented, and have pretty much no UI... Thet are handled by the Shipit::Hooks model, see also the schema. Each record is basically a subscription.

So right know users are expected to either create them from a Rails console, or a migration.

Alternatively if you don't have a chat bot, or would rather keep this contained in Shipit, while a bit of a hack, you can decorate the Shipit::Hook.emit method in your host app, and use that to implement what you need there. We should probably make this a first class API.

Hope this helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@airhorns
Comment options

Answer selected by casperisfine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants