Skip to content

Releases: suzuki-shunsuke/tfcmt

v0.6.0-2

19 Jan 09:42
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v0.6.0-2 Pre-release
Pre-release

v0.6.0-1...v0.6.0-2
Milestone

Feature

#49 improve default destroy warning template

v0.6.0-1

19 Jan 09:17
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v0.6.0-1 Pre-release
Pre-release

v0.6.0-0...v0.6.0-1
Milestone

Fixes

#48 fix default no change label

v0.6.0-0

19 Jan 08:48
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v0.6.0-0 Pre-release
Pre-release

v0.5.0...v0.6.0-0
Milestone

Breaking Changes

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

#40 remove message option and template variable Message
#41 remove --title and --destroy-warning-title options and template variable .Title
#44 pull request labels are updated by default
#46 the variable target is added to the default template and the default label name

Feature

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

#42 improve default template
#43 get GitHub token from the environment variable "GITHUB_TOKEN" by default
#44 pull request labels are updated by default
#45 make the configuration file optional
#46 add the variable "target" to default template and default label name

v0.5.0

19 Jan 00:32
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v0.4.0...v0.5.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.5.0-0

16 Jan 04:39
Immutable release. Only release title and notes can be modified.

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
Immutable release. Only release title and notes can be modified.

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
Immutable release. Only release title and notes can be modified.

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
Immutable release. Only release title and notes can be modified.

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

05 Jan 07:06
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v0.1.0-0

05 Jan 06:56
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v0.1.0-0 Pre-release
Pre-release

Changelog

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