mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-29 00:38:24 +00:00
* added custom templates support * made default templates DRY * Change init to anonymous function. * Initialize anonymous function inside var * - Add flag/cfg param for custom template dir - Add test for custom template * Add documentation. * Address PR comments. Co-authored-by: Ricard Bejarano <ribejara@thousandeyes.com>
12 lines
718 B
Cheetah
12 lines
718 B
Cheetah
{{ define "multiProjectPlan" -}}
|
|
{{ template "multiProjectHeader" . }}
|
|
{{ $disableApplyAll := .DisableApplyAll }}{{ range $i, $result := .Results }}### {{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 pull request, comment:
|
|
* `atlantis apply`
|
|
* :put_litter_in_its_place: To delete all plans and locks for the PR, comment:
|
|
* `atlantis unlock`{{end}}{{end}}{{ template "log" . }}
|
|
{{ end }}
|