github suzuki-shunsuke/github-comment v5.1.0

latest releases: v6.3.0, v6.3.0-1, v6.2.1...
19 months ago

Pull Requests | Issues | v5.0.3...v5.1.0

Features

#864 #867 Add the template function WrapCode
#864 #867 Omit the template hidden_combined_output if hidden_combined_output is too long

Same as tfcmt's feature.

WrapCode wraps a given text with <pre><code> or "```".
WrapCode omits the text if the text is too long.

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

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 github-comment.
# ...

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

Don't miss a new github-comment release

NewReleases is sending notifications on new releases.