From 4cdae2a3acfaa84eb309be646de32b65e78630bf Mon Sep 17 00:00:00 2001 From: jloh Date: Sat, 31 Mar 2018 15:20:01 +1300 Subject: [PATCH] hooks/slack: move pretext -> title This follows the Slack style guide https://api.slack.com/docs/message-guidelines --- conf/v1/hooks.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/conf/v1/hooks.conf b/conf/v1/hooks.conf index 4558f5b..416cb6d 100644 --- a/conf/v1/hooks.conf +++ b/conf/v1/hooks.conf @@ -256,11 +256,10 @@ location = /v1/hooks/slack { response_type = slack_response_type, attachments = {{ mrkdwn_in = { - "text", - "pretext" + "text" }, fallback = "", -- TODO: Actually put something here good lord - pretext = title, + title = title, text = resp, footer = "Powered by ", footer_icon = "https://static.jloh.co/geojs/avatar/hipchat/v1/geojs-icon_2x.png"