Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Resolve Rendering Issue in the Policy Check Results Template #4870

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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