Releases: suzuki-shunsuke/tfcmt
v4.4.2
Pull Requests | Issues | v4.4.1...v4.4.2
Fixes
#823 #824 Fix summaries of tainted resources
#829 #831 Fix summaries of resources replaced by terraform's -replace options
tfcmt parses the output of terraform and outputs the list of replaced resources as the following.
* Replace
* null_resource.foo
But tfcmt didn't parse the output of terraform well and the above list wasn't outputted properly when some resources were replaced by terraform's taint command or -replace option.
This release fixes the bug.
v4.4.2-1
Pull Requests | Issues | v4.4.1...v4.4.2-1
Changelog
- bf411a0 fix: fix summay of tainted resources (#824)
- 737048a chore: remove aqua-policy.yaml (#825)
- f9b1423 chore(deps): update dependency aquaproj/aqua-registry to v4.21.0 (#822)
- abee1e9 fix(deps): update module github.com/google/go-github/v53 to v53.2.0 (#821)
- 186f8c2 chore(deps): update dependency reviewdog/reviewdog to v0.14.2 (#820)
- 58eefd7 fix(deps): update module github.com/urfave/cli/v2 to v2.25.7 (#819)
- 038ce7d chore(deps): update dependency aquaproj/aqua-registry to v4.20.0 (#818)
- 43f22c2 chore(deps): update dependency aquaproj/aqua to v2.9.0 (#817)
- c8b56eb chore(deps): update dependency aquaproj/aqua-registry to v4.19.0 (#816)
- 02f13ec chore(deps): update dependency rhysd/actionlint to v1.6.25 (#815)
- 199636f fix(deps): update module golang.org/x/oauth2 to v0.9.0 (#814)
- 5107a0e fix(deps): update module github.com/google/go-github/v52 to v53 (#809)
- c828923 fix(deps): update module github.com/urfave/cli/v2 to v2.25.6 (#812)
- e0e86ed chore(deps): update dependency aquaproj/aqua-registry to v4.18.0 (#813)
- 103a5cc chore(deps): update dependency aquaproj/aqua-registry to v4.15.0 (#810)
- 09c7120 fix(deps): update module github.com/sirupsen/logrus to v1.9.3 (#808)
- cc2764c chore(deps): update dependency aquaproj/aqua-registry to v4.14.1 (#807)
- a5c8839 chore(deps): update dependency aquaproj/aqua-registry to v4.14.0 (#806)
- fb14215 chore(deps): update dependency aquaproj/aqua-registry to v4.13.0 (#805)
- 170addf chore(deps): update dependency aquaproj/aqua-registry to v4.12.0 (#804)
- 9704702 fix(deps): update module github.com/urfave/cli/v2 to v2.25.5 (#803)
- d49d8aa chore(deps): update dependency aquaproj/aqua-registry to v4.11.0 (#802)
- 061c966 fix(deps): update module github.com/urfave/cli/v2 to v2.25.4 (#801)
- a3ff5fc chore(deps): update dependency aquaproj/aqua-registry to v4.10.1 (#800)
- d2b2185 chore(deps): update dependency aquaproj/aqua-registry to v4.10.0 (#799)
- 62e7e72 chore(deps): update suzuki-shunsuke/go-test-full-workflow action to v0.2.2 (#798)
- ed2b298 Merge pull request #797 from suzuki-shunsuke/renovate/suzuki-shunsuke-go-release-workflow-0.x
- fb3e9da chore(deps): update suzuki-shunsuke/go-release-workflow action to v0.4.2
- 509ab6f Merge pull request #796 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-4.x
- 07b0f8a chore(aqua): update aqua-checksums.json
- 84ec9f2 chore(deps): update dependency aquaproj/aqua-registry to v4.9.0
v4.4.1
Pull Requests | Issues | v4.4.0...v4.4.1
Fixes
#795 Propagate the signal such as SIGINT to terraform command properly for graceful shutdown
exec.CommandContext exits a command by SIGKILL immediately, so the command can't exit gracefully. So let's use suzuki-shunsuke/go-timeout instead.
go-timeout exits a command by SIGINT gracefully.
Reference
Test
hello.sh
#!/usr/bin/env bash
set -eu
set -o pipefail
trap 'echo trapped.' 2
sleep 60AS IS
$ tfcmt -v
tfcmt version 4.4.0 (5e9bc7fece716d7e892b273c1a7a2103273a7f9c)
$ tfcmt plan -- bash hello.sh
^CERRO[0002] remove labels error="context canceled" program=tfcmt
context canceledecho trapped. isn't executed.
TO BE
$ tfcmt plan -- bash hello.sh
^Ctrapped.
ERRO[0001] remove labels error="context canceled" program=tfcmt
context canceledecho trapped. is executed.
v4.4.0
Pull Requests | Issues | v4.3.0...v4.4.0
Features
#773 #774 Support skipping the post of a comment if the result of terraform plan has no change
https://suzuki-shunsuke.github.io/tfcmt/skip-no-changes
You can skip posting a comment if there is no change using the command line option -skip-no-changes or configuration field disable_comment.
e.g.
$ tfcmt plan -skip-no-changes -- terraform plantfcmt.yaml
terraform:
plan:
when_no_changes:
disable_comment: trueIf the option is set, tfcmt plan adds or updates a pull request label but doesn't post a comment if the result of terraform plan has no change and no warning.
Even if there are no comment, the pull request label lets you know the result.
This feature is useful when you want to keep pull request comments clean.
v4.4.0-2
Pull Requests | Issues | v4.4.0-1...v4.4.0-2
Changelog
- 5fc2e78 fix: post a comment if there are warning or error messages
v4.4.0-1
Features
https://github.com/suzuki-shunsuke/tfcmt/discussions/773 #774 Support skipping a post of a comment if there is no change
- Add a command line option
-skip-no-changesto the subcommandplan - Add a field
disable_commentto the configuration file
e.g.
$ tfcmt plan -skip-no-changes -- terraform planterraform:
plan:
when_no_changes:
disable_comment: truev4.3.0
Pull Requests | Issues | v4.2.0...v4.3.0
Features
- TFCMT_REPO_OWNER
- TFCMT_REPO_NAME
- TFCMT_SHA
- TFCMT_PR_NUMBER
- TFCMT_CONFIG
- TFCMT_VAR_*
v4.3.0-1
Pull Requests | Issues | v4.2.0...v4.3.0-1
Changelog
- f2bef37 feat: support passing variables via environment variables
- 8d52a9b feat: support passing command line arguments via environment variables
- 5161069 style: format
- 1a7305d Merge pull request #743 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- 1d0b97a Merge pull request #742 from suzuki-shunsuke/renovate/aquaproj-aqua-2.x
- efb9dcb chore(aqua): update aqua-checksums.json
- 7eed56b chore(deps): update dependency aquaproj/aqua-registry to v3.157.0
- 5696120 chore(deps): update dependency aquaproj/aqua to v2.3.6
- fd9fa06 Merge pull request #741 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- 41dd711 chore(aqua): update aqua-checksums.json
- dedd4c9 chore(deps): update dependency aquaproj/aqua-registry to v3.156.0
- 85c7e18 Merge pull request #740 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- 97c1aee Merge pull request #739 from suzuki-shunsuke/renovate/aquaproj-aqua-2.x
- 622a3bf chore(aqua): update aqua-checksums.json
- cffbcc9 chore(deps): update dependency aquaproj/aqua-registry to v3.155.0
- 37ce9a9 chore(deps): update dependency aquaproj/aqua to v2.3.5
- 3566196 Merge pull request #738 from suzuki-shunsuke/renovate/goreleaser-goreleaser-1.x
- 4514951 chore(aqua): update aqua-checksums.json
- c32791e chore(deps): update dependency goreleaser/goreleaser to v1.17.1
- af0cef9 Merge pull request #737 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- 301d3d8 chore(aqua): update aqua-checksums.json
- 46f780c chore(deps): update dependency aquaproj/aqua-registry to v3.154.0
- 75544ac Merge pull request #736 from suzuki-shunsuke/renovate/aquaproj-aqua-2.x
- 232cec7 chore(deps): update dependency aquaproj/aqua to v2.3.4
- 9b71b4d Merge pull request #735 from suzuki-shunsuke/renovate/suzuki-shunsuke-go-test-full-workflow-0.x
- da4d039 chore(deps): update suzuki-shunsuke/go-test-full-workflow action to v0.2.1
- b0c30e6 Merge pull request #734 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- 3d17707 chore(deps): update dependency aquaproj/aqua-registry to v3.153.0
- bf072b3 Merge pull request #733 from suzuki-shunsuke/renovate/suzuki-shunsuke-go-release-workflow-0.x
- 2701527 Merge pull request #732 from suzuki-shunsuke/renovate/aquaproj-aqua-2.x
- d5d3c21 chore(deps): update suzuki-shunsuke/go-release-workflow action to v0.4.1
- 63f92f8 chore(deps): update dependency aquaproj/aqua to v2.3.2
- 0702ca2 Merge pull request #731 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- b56e363 chore(deps): update dependency aquaproj/aqua-registry to v3.152.0
- 70f8209 Merge pull request #730 from suzuki-shunsuke/renovate/goreleaser-goreleaser-1.x
- 5d1914a chore(deps): update dependency goreleaser/goreleaser to v1.17.0
- 6877edf Merge pull request #729 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- abb0bf7 chore(deps): update dependency aquaproj/aqua-registry to v3.151.0
- de65dc1 Merge pull request #728 from suzuki-shunsuke/renovate/suzuki-shunsuke-actionlint-workflow-0.x
- 8705018 chore(deps): update suzuki-shunsuke/actionlint-workflow action to v0.5.0
- e8daa9e Merge pull request #725 from suzuki-shunsuke/renovate/suzuki-shunsuke-go-test-full-workflow-0.x
- 13179f8 chore(deps): update suzuki-shunsuke/go-test-full-workflow action to v0.2.0
- 4e43410 Merge pull request #726 from suzuki-shunsuke/renovate/aquaproj-aqua-installer-2.x
- 32e92e3 chore(deps): update aquaproj/aqua-installer action to v2.1.1
- c2adaef Merge pull request #727 from suzuki-shunsuke/renovate/aquaproj-aqua-2.x
- f0cbf90 Merge pull request #724 from suzuki-shunsuke/renovate/suzuki-shunsuke-actionlint-workflow-0.x
- 548908e chore(deps): update dependency aquaproj/aqua to v2.3.1
- ddfd0d8 chore(deps): update suzuki-shunsuke/actionlint-workflow action to v0.4.2
- 3e37813 Merge pull request #723 from suzuki-shunsuke/renovate/suzuki-shunsuke-cmdx-1.x
- e63e382 Merge pull request #722 from suzuki-shunsuke/renovate/aquaproj-aqua-2.x
- 6eaa125 chore(aqua): update aqua-checksums.json
- 46c189d chore(deps): update dependency suzuki-shunsuke/cmdx to v1.7.2
- 78ba88e chore(deps): update dependency aquaproj/aqua to v2.2.2
- a610b46 Merge pull request #721 from suzuki-shunsuke/renovate/suzuki-shunsuke-cmdx-1.x
- 076f083 chore(aqua): update aqua-checksums.json
- 0de8d32 chore(deps): update dependency suzuki-shunsuke/cmdx to v1.7.1
- 55494b7 Merge pull request #720 from suzuki-shunsuke/renovate/golang.org-x-oauth2-0.x
- 46aff54 chore(go): go mod tidy
- 00a65ec fix(deps): update module golang.org/x/oauth2 to v0.7.0
- 210ec0b Merge pull request #718 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- d61f04b chore(aqua): update aqua-checksums.json
- a55174c chore(deps): update dependency aquaproj/aqua-registry to v3.150.0
- d85f7eb Merge pull request #717 from suzuki-shunsuke/renovate/rhysd-actionlint-1.x
- db2b3dd chore(aqua): update aqua-checksums.json
- 52d4d07 chore(deps): update dependency rhysd/actionlint to v1.6.24
- db348d4 Merge pull request #716 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- f9c5350 chore(aqua): update aqua-checksums.json
- 57516e3 chore(deps): update dependency aquaproj/aqua-registry to v3.149.1
- 6400b2a Merge pull request #715 from suzuki-shunsuke/renovate/github.zerozr99.workers.dev-urfave-cli-v2-2.x
- 0e06912 chore(go): go mod tidy
- 0c463a7 fix(deps): update module github.com/urfave/cli/v2 to v2.25.1
- 1de7fea Merge pull request #714 from suzuki-shunsuke/renovate/aquaproj-aqua-2.x
- 9ba0b1c chore(deps): update dependency aquaproj/aqua to v2.2.1
- 01378bd Merge pull request #713 from suzuki-shunsuke/renovate/aquaproj-aqua-2.x
- 523c0da chore(deps): update dependency aquaproj/aqua to v2.2.0
- 2ff9854 Merge pull request #683 from suzuki-shunsuke/renovate/suzuki-shunsuke-renovate-config-2.x
- 7c6bc27 Merge pull request #712 from suzuki-shunsuke/chore/remove-policy
- 431e049 chore: remove aqua-policy
- 188ff5d Merge pull request #664 from suzuki-shunsuke/renovate/golangci-golangci-lint-1.x
- 99dac9b Merge branch 'main' into renovate/golangci-golangci-lint-1.x
- e62470c fix: fix a lint error
- 2b316b8 Merge pull request #710 from suzuki-shunsuke/test-go-mod-tidy
- 5526f22 Merge branch 'main' into test-go-mod-tidy
- f8912e4 Merge pull request #695 from suzuki-shunsuke/renovate/actions-setup-go-4.x
- 170ca4b ci: test go mod tidy
- dd86e79 Merge pull request #709 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- cb9d3e0 chore(aqua): update aqua-checksums.json
- 0858fb7 chore(deps): update dependency aquaproj/aqua-registry to v3.149.0
- a11b6a9 Merge pull request #708 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- cf4774e chore(aqua): update aqua-checksums.json
- 1824cca chore(deps): update dependency aquaproj/aqua-registry to v3.148.0
- 40442d7 Merge pull request #707 from suzuki-shunsuke/renovate/aquaproj-aqua-2.x
- c4c3404 chore(deps): update dependency aquaproj/aqua to v2.1.0
- fce37fb Merge pull request #706 from suzuki-shunsuke/renovate/aquaproj-aqua-2.x
- a95a5b0 chore(deps): update dependency aquaproj/aqua to v2
- e830147 Merge pull request #705 from suzuki-shunsuke/renovate/aquaproj-aqua-1.x
- 643c74c chore(deps): update dependency aquaproj/aqua to v1.38.0
- 4e727da Merge pull request #703 from suzuki-shunsuke/renovate/goreleaser-goreleaser-1.x
- 5054175 Merge pull request #704 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- 591054c chore(aqua): update aqua-checksums.json
- 9e1a349 chore(aqua): update aqua-checksums.json
- 41f934c chore(deps): update dependency aquaproj/aqua-registry to v3.147.0
- 154e22d chore(deps): update dependency goreleaser/goreleaser to v1.16.2
- f6f903f Merge pull request #702 from suzuki-shunsuke/renovate/aquaproj-aqua-1.x
- b262d61 chore(deps): update dependency aquaproj/aqua to v1.37.2
- 88a1088 Merge pull request #701 from suzuki-shunsuke/renovate/aquaproj-aqua-1.x
- 5ba522b chore(deps): update dependency aquaproj/aqua to v1.37.1
- edbf318 Merge pull request #700 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- 6d5b552 chore(aqua): update aqua-checksums.json
- b472b03 chore(deps): update dependency aquaproj/aqua-registry to v3.146.0
- 3216b81 Merge pull request #699 from suzuki-shunsuke/renovate/aquaproj-aqua-1.x
- 5f04066 chore(deps): update dependency aquaproj/aqua to v1.37.0
- 18d0d77 Merge pull request #698 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- 06980e8 chore(aqua): update aqua-checksums.json
- 53bb4ce chore(deps): update dependency aquaproj/aqua-registry to v3.145.1
- f866740 Merge pull request #697 from suzuki-shunsuke/renovate/github.zerozr99.workers.dev-google-go-github-v50-50.x
- 3dc2845 fix(deps): update module github.com/google/go-github/v50 to v50.2.0
- 46e8171 Merge pull request #696 from suzuki-shunsuke/renovate/aquaproj-aqua-1.x
- be7ef2f chore(deps): update dependency aquaproj/aqua to v1.36.1
- f665403 chore(deps): update actions/setup-go action to v4
- 55ec8c6 Merge pull request #694 from suzuki-shunsuke/renovate/suzuki-shunsuke-cmdx-1.x
- 7f34f0a Merge pull request #693 from suzuki-shunsuke/renovate/suzuki-shunsuke-go-test-full-workflow-0.x
- 335eb47 chore(aqua): update aqua-checksums.json
- 8260e1e chore(deps): update dependency suzuki-shunsuke/cmdx to v1.7.0
- e3d086a chore(deps): update suzuki-shunsuke/go-test-full-workflow action to v0.1.3
- 4440da1 Merge pull request #692 from suzuki-shunsuke/renovate/suzuki-shunsuke-go-test-full-workflow-0.x
- 1e87f09 chore(deps): update suzuki-shunsuke/go-test-full-workflow action to v0.1.2
- aa905ab Merge pull request #691 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- 4fe343b chore(aqua): update aqua-checksums.json
- 3631ca6 chore(deps): update dependency aquaproj/aqua-registry to v3.145.0
- 3ddb5e7 Merge pull request #690 from suzuki-shunsuke/re...
v4.2.0
Pull Requests | Issues | v4.1.0...v4.2.0
Features
#194 #654 #662 Support outputting the result to a local file @NikitaCOEUR 🎉 New Contributor
https://suzuki-shunsuke.github.io/tfcmt/output-file
A command line option --output has been added.
If this option is set, tfcmt outputs the result to a local file instead of posting a comment to GitHub pull request.
tfcmt plan:
$ tfcmt --output plan.md plan -- terraform plantfcmt apply:
$ tfcmt --output apply.md apply -- terraform applyIf a specified file doesn't exist, the file is created.
If the file already exist, the file content is appended.
💡 If you want to overwrite the file content instead of appending, please make the file empty before running tfcmt.
e.g.
: > plan.md # Make the file empty
tfcmt --output plan.md plan -- terraform planMetadata isn't embedded.
v4.2.0-2
#662 fix(localfile): append the output to a file instead of overwriting
AS IS
If the file already exist, the file content is overwritten.
TO BE
If the file already exist, the file content is appended.
If you prefer the behavior of AS IS, please make the file empty.
e.g.
: > plan.md
tfcmt --output plan.md plan -- terraform planOthers
#660 Update Go to v1.20.1