Skip posting a comment if there is no change
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 plan
tfcmt.yaml
terraform:
plan:
when_no_changes:
disable_comment: true
If 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.