{{ define "policyCheckResultsWrapped" -}}
<details><summary>Show Output</summary>
{{- if eq .Command "Policy Check" }}
{{- if ne .PreConftestOutput "" }}

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

{{- end -}}
{{ template "policyCheck" .PolicySetResults }}
{{- if ne .PostConftestOutput "" }}
```diff
{{ .PostConftestOutput }}
```
{{ end -}}
{{- end }}
{{- if .PolicyCleared }}
* :arrow_forward: To **apply** this plan, comment:
  ```shell
  {{ .ApplyCmd }}
  ```
{{- else }}
</details>

#### Policy Approval Status:
```
{{ .PolicyApprovalSummary }}
```
* :heavy_check_mark: To **approve** this project, comment:
  ```shell
  {{ .ApprovePoliciesCmd }}
  ```
{{- end }}
* :put_litter_in_its_place: To **delete** this plan and lock, click [here]({{ .LockURL }})
* :repeat: To re-run policies **plan** this project again by commenting:
  ```shell
  {{ .RePlanCmd }}
  ```
{{- if eq .Command "Policy Check" }}

{{- if ne .PolicyCheckSummary "" }}
```
{{ .PolicyCheckSummary }}
```
{{- end }}

{{- end }}
{{ end -}}
