From c9979cc12520e376032446e09c7ab8d3675a6fa7 Mon Sep 17 00:00:00 2001 From: Sai Ram Kunala Date: Sat, 14 Mar 2020 17:48:51 +0530 Subject: [PATCH] Introduce Project Name in Slack notification --- templates/integrations/slack_message.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/integrations/slack_message.json b/templates/integrations/slack_message.json index 40338b3a..9afd1a93 100644 --- a/templates/integrations/slack_message.json +++ b/templates/integrations/slack_message.json @@ -13,6 +13,12 @@ "mrkdwn_in": ["fields"], "text": "“{{ check.name_then_code|escapejs }}” is {{ check.status|upper }}.", "fields": [ + {% if check.project.name %} + {"title": "Project Name", + "value": "{{ check.project.name|escapejs }}" + }, + {% endif %} + {% if check.desc %} {"title": "Description", "value": "{{ check.desc|escapejs }}"