mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-03 20:28:50 +00:00
30 lines
1.1 KiB
Cheetah
30 lines
1.1 KiB
Cheetah
{{ define "multiProjectPolicy" -}}
|
|
{{ template "multiProjectHeader" . -}}
|
|
{{ $disableApplyAll := .DisableApplyAll -}}
|
|
{{ $hideUnchangedPlans := .HideUnchangedPlanComments -}}
|
|
{{ $quietPolicyChecks := .QuietPolicyChecks -}}
|
|
{{ range $i, $result := .Results -}}
|
|
{{ if (and $hideUnchangedPlans $result.NoChanges) }}{{continue}}{{end -}}
|
|
{{ if (and $quietPolicyChecks $result.IsSuccessful) }}{{continue}}{{end -}}
|
|
### {{ add $i 1 }}. {{ if $result.ProjectName }}project: `{{ $result.ProjectName }}` {{ end }}dir: `{{ $result.RepoRelDir }}` workspace: `{{ $result.Workspace }}`
|
|
{{ $result.Rendered }}
|
|
|
|
{{ if ne $disableApplyAll true -}}
|
|
---
|
|
{{ end -}}
|
|
{{ end -}}
|
|
{{ if ne .DisableApplyAll true -}}
|
|
{{ if and (gt (len .Results) 0) (not .PlansDeleted) -}}
|
|
* :fast_forward: To **apply** all unapplied plans from this {{ .VcsRequestType }}, comment:
|
|
```shell
|
|
{{ .ExecutableName }} apply
|
|
```
|
|
* :put_litter_in_its_place: To **delete** all plans and locks from this {{ .VcsRequestType }}, comment:
|
|
```shell
|
|
{{ .ExecutableName }} unlock
|
|
```
|
|
{{ end -}}
|
|
{{ end -}}
|
|
{{ template "log" . -}}
|
|
{{ end -}}
|