Skip to content

Commit

Permalink
fix: Resolve Rendering Issue in the Policy Check Results Template (#4870
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dorian-tsorfy committed Sep 3, 2024
1 parent 0f48bf2 commit 41cd9c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/events/markdown_renderer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ $$$
</details>
#### Policy Approval Status:
$$$
policy set: policy1: requires: 1 approval(s), have: 0.
Expand Down
3 changes: 3 additions & 0 deletions server/events/templates/policy_check_results_wrapped.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<details><summary>Show Output</summary>
{{- if eq .Command "Policy Check" }}
{{- if ne .PreConftestOutput "" }}

```diff
{{ .PreConftestOutput }}
```

{{- end -}}
{{ template "policyCheck" .PolicySetResults }}
{{- if ne .PostConftestOutput "" }}
Expand All @@ -20,6 +22,7 @@
```
{{- else }}
</details>

#### Policy Approval Status:
```
{{ .PolicyApprovalSummary }}
Expand Down

0 comments on commit 41cd9c2

Please sign in to comment.