From f2566ae21d4ffbfd27da6098c6d9cee72b06247c Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Thu, 16 Apr 2026 10:44:30 +0200 Subject: [PATCH] chore: use Dockerfile --- main.go | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 6f6ce82..de1485c 100644 --- a/main.go +++ b/main.go @@ -171,11 +171,31 @@ func card(d templateData) ([]byte, error) { //}` if d.Status == "success" { - d.Add = "{\"decoratedText\": {\"startIcon\": {\"materialIcon\": {\"name\": \"check_circle\"}},\"text\": \"SUCCESS\"}}," + d.Add = ` +{ + "decoratedText": { + "startIcon": { + "materialIcon": { + "name": "check_circle" + } + }, + "text": "SUCCESS" + } +},` } if d.Status == "failure" { - d.Add = "{\"decoratedText\": {\"startIcon\": {\"materialIcon\": {\"name\": \"stop_circle\"}},\"text\": \"FAILURE\"}}," + d.Add = ` +{ + "decoratedText": { + "startIcon": { + "materialIcon": { + "name": "stop_circle" + } + }, + "text": "FAILURE" + } +},` } tpl := ` @@ -188,7 +208,6 @@ func card(d templateData) ([]byte, error) { "title": "{{ .Title }}", "subtitle": "{{ .SubTitle }}", "imageUrl": "{{ .IconUrl }}", - "imageStyle": "IMAGE", "imageType": "SQUARE" }, "sections": [