From 89522fa41e32af6b23cd9ec1451df2b6c450cfc0 Mon Sep 17 00:00:00 2001 From: michaelact <86778470+michaelact@users.noreply.github.com> Date: Wed, 24 Jul 2024 09:06:00 +0700 Subject: [PATCH] fix: subject example --- smtp/smtp.yaml.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smtp/smtp.yaml.example b/smtp/smtp.yaml.example index c2041e2e..ced70dd0 100644 --- a/smtp/smtp.yaml.example +++ b/smtp/smtp.yaml.example @@ -48,7 +48,7 @@ spec: delivery: server: smtp.gmail.com port: '587' - subject: '{{ if eq .Build.Status 3 }}✅ Build Successful ({{ .Build.Substitutions.REPO_NAME }}){{ else }}❌ Build Failure ({{ .Build.Substitutions.REPO_NAME }}){{ end }} | {{.Build.Substitutions._COMMIT_MESSAGE}}' + subject: '{{ if eq .Build.Status 3 }}✅ Build Successful ({{ .Build.Substitutions.REPO_NAME }}){{ else }}❌ Build Failure ({{ .Build.Substitutions.REPO_NAME }}){{ end }} | {{ if .Build.Substitutions._COMMIT_MESSAGE }} {{ if gt (len .Build.Substitutions._COMMIT_MESSAGE) 100 }}{{ slice .Build.Substitutions._COMMIT_MESSAGE 0 100 }}{{ else }}{{ .Build.Substitutions._COMMIT_MESSAGE }}{{ end }}{{ else }}{{ .Build.Substitutions.COMMIT_SHA }}{{ end }} [...]' sender: example-sender@gmail.com from: example-from@gmail.com recipients: