Releases: suzuki-shunsuke/tfcmt
v0.5.0-0
Feature
#39 feat: add template variables CreatedResource, UpdatedResources, DeletedResources and ReplacedResources
As a summary of the result of terraform plan
, it is convenient to show a list of resource paths.
So the following template variables are added.
.CreatedResources
: a list of created resource paths ([]string).UpdatedResources
: a list of updated resource paths ([]string).DeletedResources
: a list of deleted resource paths ([]string).ReplacedResources
: a list of replaced resource paths ([]string)
For example,
{{if .CreatedResources}}
* Create
{{- range .CreatedResources}}
* {{.}}
{{- end}}{{end}}{{if .UpdatedResources}}
* Update
{{- range .UpdatedResources}}
* {{.}}
{{- end}}{{end}}{{if .DeletedResources}}
* Delete
{{- range .DeletedResources}}
* {{.}}
{{- end}}{{end}}{{if .ReplacedResources}}
* Replace
{{- range .ReplacedResources}}
* {{.}}
{{- end}}{{end}}
* Create
* null_resource.foo
* Update
* mysql_database.bar
* Delete
* null_resource.bar
* Replace
* mysql_database.foo
v0.4.0
v0.3.0
Fixes
https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+is%3Aclosed+milestone%3Av0.3.0+label%3Abug
#35 fix: post a comment even if it failed to update labels
fix: post a comment even if it failed to update labels
Problem to solve
If it failed to update labels, the comment isn't posted.
AS IS
When it failed update labels, the command exits immediately.
TO BE
When it failed update labels, output error logs but the process continues.
v0.2.0
Breaking Changes
#32 feat: change the behavior of destroy warning
Feature
#32 feat: change the behavior of destroy warning
feat: change the behavior of destroy warning
AS IS
tfcmt posts a deletion warning comment as the other comment.
TO BE
tfcmt posts only one comment whose template is when_destroy.template
.
when_destroy:
label: "destroy"
label_color: "d93f0b" # red
template: |
{{ .Title }}
[CI link]( {{ .Link }} )
This plan contains **resource deletion**. Please check the plan result very carefully!
{{ .Message }}
{{if .Result}}
<pre><code>{{ .Result }}
</pre></code>
{{end}}
<details><summary>Details (Click me)</summary>
<pre><code>{{ .Body }}
</pre></code></details>
And the default title of destroy warning is changed to ## :warning: Resource Deletion will happen :warning:
.