webhooks: Add a webhook capable of parsing Slack payloads.

This adds a webhook that can be used to interpret standard Slack
payloads. Since there are a ton of existing Slack integrations out
there, having a webhook which can accept standard Slack payloads can
significantly ease transition pains. Obviously this can't do everything
that Slack payloads can (particularly WRT their widgets/interactions),
but we can ingest text and parse out multi-block payloads into a message
relatively reasonably.
This commit is contained in:
Chris Heald
2020-02-12 15:48:55 -07:00
committed by Tim Abbott
parent 21a04e2dbc
commit c80e913c7a
10 changed files with 321 additions and 0 deletions

View File

@@ -361,6 +361,12 @@ WEBHOOK_INTEGRATIONS: List[WebhookIntegration] = [
WebhookIntegration('reviewboard', ['version-control'], display_name="ReviewBoard"),
WebhookIntegration('semaphore', ['continuous-integration', 'deployment']),
WebhookIntegration('sentry', ['monitoring']),
WebhookIntegration(
'slack_incoming',
['communication'],
display_name="Slack-compatible webhook",
logo='images/integrations/logos/slack.svg',
),
WebhookIntegration('slack', ['communication']),
WebhookIntegration('solano', ['continuous-integration'], display_name='Solano Labs'),
WebhookIntegration('splunk', ['monitoring'], display_name='Splunk'),