From 49d1430eef60873299e556b9f3db5cd7dd2b8304 Mon Sep 17 00:00:00 2001 From: Sourav Agrawal <146818014+sourava01@users.noreply.github.com> Date: Wed, 27 Mar 2024 21:37:40 +0530 Subject: [PATCH] fix: Make PolicyCheckSummary rendering optional (#4382) --- server/events/templates/policy_check_results_wrapped.tmpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/events/templates/policy_check_results_wrapped.tmpl b/server/events/templates/policy_check_results_wrapped.tmpl index db30224e6c..330980c2f4 100644 --- a/server/events/templates/policy_check_results_wrapped.tmpl +++ b/server/events/templates/policy_check_results_wrapped.tmpl @@ -36,8 +36,11 @@ ``` {{- if eq .Command "Policy Check" }} +{{- if ne .PolicyCheckSummary "" }} ``` {{ .PolicyCheckSummary }} ``` {{- end }} -{{ end -}} \ No newline at end of file + +{{- end }} +{{ end -}}