From ceceddd4c7b46efb34832a1cf50a14c19dd7f4cc Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Thu, 10 Sep 2020 14:38:38 +0100 Subject: [PATCH] Modify format of service name in Teams notification Teams notifications have all text parsed as markdown. If the service name has underscores in them it causes the service name to be misrendered. This puts backquotes around the service name, which formats it as fixed width on a grey background, with underscores handled correctly and pulls your focus to the service name. --- templates/integrations/msteams_message.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/integrations/msteams_message.json b/templates/integrations/msteams_message.json index 796b16b8..e35d6b31 100644 --- a/templates/integrations/msteams_message.json +++ b/templates/integrations/msteams_message.json @@ -3,7 +3,7 @@ "@type": "MessageCard", "@context": "https://schema.org/extensions", "themeColor": "{% if check.status == "up" %}5cb85c{% endif %}{% if check.status == "down" %}d9534f{% endif %}", - "text": "“{{ check.name_then_code|escapejs }}” is {{ check.status|upper }}.", + "text": "`{{ check.name_then_code|escapejs }}` is {{ check.status|upper }}.", "sections": [ { "facts": [