fix(alerting): replace HTML entities with emojis in teams-workflows provider to prevent rendering issues (#941)

* replace html entities with emojis to prevent rendering issues

* update teamsworklfows tests as well

---------

Co-authored-by: Sascha Voth <voth@jacob.de>
Co-authored-by: TwiN <twin@linux.com>
This commit is contained in:
authored and GitHub committed 2025-01-13 23:18:47 -05:00
1 parent e1675cc747
commit 1ddaf5f3e5
2 files changed
+6 -6

No files matched your search

@@ -147,7 +147,7 @@ func (provider *AlertProvider) buildRequestBody(cfg *Config, ep *endpoint.Endpoi
}
// Configure default title if it's not provided
title := "&#x26D1; Gatus"
title := "⛑️ Gatus"
if cfg.Title != "" {
title = cfg.Title
}
@@ -157,9 +157,9 @@ func (provider *AlertProvider) buildRequestBody(cfg *Config, ep *endpoint.Endpoi
for _, conditionResult := range result.ConditionResults {
var key string
if conditionResult.Success {
key = "&#x2705;"
key = "✅"
} else {
key = "&#x274C;"
key = "❌"
}
facts = append(facts, Fact{
Title: key,