Skip to content

Commit 052bf90

Browse files
dorian-tsorfya1k0u
authored andcommitted
fix: Resolve Rendering Issue in the Policy Check Results Template (runatlantis#4870)
Signed-off-by: a1k0u <[email protected]>
1 parent 417b849 commit 052bf90

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

server/events/markdown_renderer_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ $$$
475475
476476
477477
</details>
478+
478479
#### Policy Approval Status:
479480
$$$
480481
policy set: policy1: requires: 1 approval(s), have: 0.

server/events/templates/policy_check_results_wrapped.tmpl

+3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
<details><summary>Show Output</summary>
33
{{- if eq .Command "Policy Check" }}
44
{{- if ne .PreConftestOutput "" }}
5+
56
```diff
67
{{ .PreConftestOutput }}
78
```
9+
810
{{- end -}}
911
{{ template "policyCheck" .PolicySetResults }}
1012
{{- if ne .PostConftestOutput "" }}
@@ -20,6 +22,7 @@
2022
```
2123
{{- else }}
2224
</details>
25+
2326
#### Policy Approval Status:
2427
```
2528
{{ .PolicyApprovalSummary }}

0 commit comments

Comments
 (0)