github suzuki-shunsuke/tfcmt v3.1.0

latest releases: v4.14.0, v4.14.0-1, v4.13.0...
2 years ago

Pull Requests | Issues | v3.0.1...v3.1.0

Feature

#227 #231 Omit too long text in the template function wrapCode automatically

tfcmt fails to post a comment if the comment is too long because the maximum length of GitHub Comment is 65536.

422 Validation Failed [{Resource:IssueComment Field:data Code:unprocessable Message:Body is too long (maximum is 65536 characters)}]

To prevent the error, the template function wrapCode checks the length of the text and if the length is over 60000, the text is omitted as the following.

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # null_resource.foo will be created
  + resource "null_resource" "foo" {
      + id = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.
null_resource.foo: Creating...
null_resource.foo: Creation complete after 0s [id=8966706083595703589]

# ...
# ... The maximum length of GitHub Comment is 65536, so the content is omitted by tfcmt.
# ...

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Others

#233 Update Go from v1.17.5 to v1.18.0

Don't miss a new tfcmt release

NewReleases is sending notifications on new releases.