Skip to content

Releases: suzuki-shunsuke/tfcmt

v0.5.0-0

16 Jan 04:39
Compare
Choose a tag to compare
v0.5.0-0 Pre-release
Pre-release

v0.4.0...v0.5.0-0
Milestone

Feature

https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+is%3Aclosed+milestone%3Av0.5.0+label%3Aenhancement

#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

08 Jan 11:20
Compare
Choose a tag to compare

v0.3.0...v0.4.0
Milestone

Feature

https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+is%3Aclosed+milestone%3Av0.4.0+label%3Aenhancement

#38 feat: add a template variable "ErrorMessages"

ErrorMessages: a list of error messages which occur in tfcmt

Fix

#37 fix: fix typo in an error message

Document

#37 docs: fix a document. #35 has no breaking change

v0.3.0

08 Jan 09:04
Compare
Choose a tag to compare

v0.2.0...v0.3.0
Milestone

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

06 Jan 06:11
Compare
Choose a tag to compare

v0.1.0...v0.2.0
Milestone

Breaking Changes

https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+is%3Aclosed+milestone%3Av0.2.0+label%3A%22breaking+change%22

#32 feat: change the behavior of destroy warning

Feature

https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+is%3Aclosed+milestone%3Av0.2.0+label%3Aenhancement

#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:.

v0.1.0

v0.1.0-0

05 Jan 06:56
Compare
Choose a tag to compare
v0.1.0-0 Pre-release
Pre-release

Changelog

96f377b build: update version to v0.1.0-0