Skip to content

Commit

Permalink
Revert non-required template changes
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Guardian committed Dec 30, 2023
1 parent 9d34a8b commit 9ca3136
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions server/events/templates/approve_all_projects.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Approved Policies for {{ len .Results }} projects:
{{ range $result := .Results -}}
1. {{ if $result.ProjectName }}project: `{{ $result.ProjectName }}` {{ end }}dir: `{{ $result.RepoRelDir }}` workspace: `{{ $result.Workspace }}`
{{ end -}}
{{ template "log" . -}}
{{ end -}}
{{- template "log" . -}}
{{ end }}
4 changes: 2 additions & 2 deletions server/events/templates/failure.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ define "failure" -}}
**{{ .Command }} Failed**: {{ .Failure }}
{{ if ne .RenderedContext "" -}}
{{- if ne .RenderedContext ""}}
{{ .RenderedContext }}
{{ end -}}
{{- end }}
{{ end -}}
2 changes: 1 addition & 1 deletion server/events/templates/failure_with_log.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ define "failureWithLog" -}}
{{ template "failure" . -}}
{{ template "log" . -}}
{{- template "log" . -}}
{{ end -}}
2 changes: 1 addition & 1 deletion server/events/templates/multi_project_import.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

---
{{ end -}}
{{ template "log" . -}}
{{- template "log" . -}}
{{ end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
* `{{ .ExecutableName }} plan`
{{ end -}}
{{ end -}}
{{ template "log" . -}}
{{- template "log" . -}}
{{ end -}}
2 changes: 1 addition & 1 deletion server/events/templates/multi_project_state_rm.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

---
{{ end -}}
{{ template "log" . -}}
{{- template "log" . -}}
{{ end -}}
2 changes: 1 addition & 1 deletion server/events/templates/multi_project_version.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

---
{{ end -}}
{{ template "log" . -}}
{{- template "log" . -}}
{{ end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ Ran {{ .Command }} for {{ if $result.ProjectName }}project: `{{ $result.ProjectN
* :repeat: To re-run policies **plan** this project again by commenting:
* `{{ .ExecutableName }} plan`
{{ end -}}
{{ template "log" . -}}
{{- template "log" . -}}
{{ end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
Ran {{ .Command }} for {{ if $result.ProjectName }}project: `{{ $result.ProjectName }}` {{ end }}dir: `{{ $result.RepoRelDir }}` workspace: `{{ $result.Workspace }}`

{{ $result.Rendered }}
{{ template "log" . -}}
{{- template "log" . -}}
{{ end -}}
4 changes: 2 additions & 2 deletions server/events/templates/unwrapped_err_with_log.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ define "unwrappedErrWithLog" -}}
{{ template "unwrappedErr" . -}}
{{ template "log" . -}}
{{ template "unwrappedErr" . }}
{{- template "log" . -}}
{{ end -}}

0 comments on commit 9ca3136

Please sign in to comment.