From f753a368b7c6421f32049b29215189361c07f713 Mon Sep 17 00:00:00 2001 From: ChaoticByte Date: Mon, 16 Oct 2023 16:23:43 +0200 Subject: [PATCH] Removed those fields from the mail body that are already included in the subject --- template.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/template.go b/template.go index 4d662b0..56cb46d 100644 --- a/template.go +++ b/template.go @@ -8,12 +8,10 @@ import ( ) const DEFAULT_SUBJECT_TEMPLATE = "{{ if .Status }}{{.Status}} {{ end }}[{{.Classification}}] {{.Title}}" -const DEFAULT_BODY_TEMPLATE = `{{.Name}} - "{{.Title}}" with classification '{{.Classification}}' -Link: {{.PortalUrl}} +const DEFAULT_BODY_TEMPLATE = `{{.Name}} +{{.PortalUrl}} Published: {{.Published}} -{{ if .Status }}Status: {{.Status}} -{{ end -}} {{ if gt .Basescore -1 }}Basescore: {{.Basescore}} {{ end -}} {{ if eq .NoPatch "true" }}There is no patch available at the moment!