Releases: suzuki-shunsuke/github-comment
v5.1.1
Pull Requests | Issues | v5.1.0...v5.1.1
Bug Fixes
#882 Remove double quotes from the template join_command
This bug affected the following versions.
- v5.1.0
v5.1.0
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.
v5.1.0-1
v5.0.3
Pull Requests | Issues | v5.0.2...v5.0.3
Bug Fixes
#794 Get repository owner and repository name from configuration file before getting associated pull requests
github-comment.yaml
base:
org: suzuki-shunsuke
repo: github-comment
e.g.
$ github-comment hide
WARN[0000] list associated prs error="list associated pull requests: GET https://api.github.com/repos///commits/cc0932be26d0dc94ff42cdbd15c98214836aebef/pulls?per_page=1&sort=updated&state=all: 404 Not Found []" org= repo= sha=cc0932be26d0dc94ff42cdbd15c98214836aebef
opts is invalid: pull request or issue number is required
Due to this bug, the following errors occured in Google Cloud Build.
- post, exec: Post a comment to not a pull request but a commit
- hide: Fail to hide comments
v5.0.2
v5.0.2-1
Pull Requests | Issues | v5.0.2-0...v5.0.2-1
Changelog
- a1a10af ci: fix slsa-github-generator version
v5.0.2-0
Pull Requests | Issues | v5.0.1...v5.0.2-0
Changelog
- f5bab5b chore: sign a checksum file by Cosign
- 6a48e53 Merge pull request #699 from suzuki-shunsuke/chore/funding
- 2704c61 chore: add FUNDING.yml
- 4659c26 Merge pull request #698 from suzuki-shunsuke/ci/remove-permissions
- 0e4557a ci: remove permissions
- 81d5332 chore(deps): update dependency aquaproj/aqua to v1.30.2
- 5de5df0 chore(deps): update dependency aquaproj/aqua-registry to v3.117.0
- 59b79c7 chore(deps): update actions/checkout action to v3.3.0
- d458fd6 chore(deps): update dependency aquaproj/aqua to v1.30.1
- c83f727 chore(deps): update dependency aquaproj/aqua-registry to v3.116.0
- 61bd502 fix(deps): update module golang.org/x/oauth2 to v0.4.0
- d9c1a39 chore(deps): pin slsa-framework/slsa-github-generator action to 68bad40
v5.0.1
Pull Requests | Issues | v5.0.0...v5.0.1
Bug Fixes
#684 #685 #687 hide: Pass command line arguments -var
and -var-file
to condition properly
Others
#688 Release SLSA Provenance 🎉
From this release, SLSA Provenance multiple.intoto.jsonl
is released in GitHub Releases.
v5.0.1-0
Pull Requests | Issues | v5.0.0...v5.0.1-0
Changelog
- 75f25f5 chore: create SLSA Provenance
- 5452fbf Merge pull request #676 from suzuki-shunsuke/renovate/goreleaser-goreleaser-action-4.x
- da15693 Merge pull request #674 from suzuki-shunsuke/renovate/actions-checkout-3.x
- 86c8116 Merge branch 'main' into renovate/goreleaser-goreleaser-action-4.x
- ec2fb19 chore(deps): update actions/checkout action to v3.2.0
- 3b62b47 Merge pull request #675 from suzuki-shunsuke/renovate/actions-setup-go-3.x
- 085132d chore(deps): update actions/setup-go action to v3.5.0
- 4a5c241 Merge pull request #677 from suzuki-shunsuke/renovate/aquaproj-aqua-registry-3.x
- a7e460a Merge pull request #678 from suzuki-shunsuke/renovate/suzuki-shunsuke-github-action-golangci-lint-0.x
- d91d418 Merge pull request #682 from suzuki-shunsuke/renovate/aquaproj-aqua-1.x
- 58b05b2 chore(deps): update dependency aquaproj/aqua-registry to v3.115.0
- 4b665c0 chore(deps): update dependency aquaproj/aqua to v1.30.0
- 4fec3f1 chore(deps): update suzuki-shunsuke/github-action-golangci-lint action to v0.1.4
- c81fed6 Merge pull request #683 from suzuki-shunsuke/renovate/aquaproj-aqua-installer-2.x
- f23ddd9 Merge branch 'main' into renovate/aquaproj-aqua-installer-2.x
- c80a07d Merge pull request #687 from suzuki-shunsuke/fix/hide-cfg-vars
- da82277 fix(hide): support vars in configuration file
- 9b6dcee Merge pull request #685 from suzuki-shunsuke/fix/pass-vars-hide
- 71e6e87 Merge branch 'main' into fix/pass-vars-hide
- d6ede4b Merge pull request #686 from suzuki-shunsuke/ci/disable-drone
- 9579e13 ci: disable Drone
- aaaac6a fix(hide): pass variables to condition
- d89da87 chore(deps): update aquaproj/aqua-installer action to v2
- 0fc03cb chore(deps): update goreleaser/goreleaser-action action to v4
- a93aece chore(deps): update mvdan/shfmt docker tag to v3.6.0
- c951aca fix(deps): update module github.com/urfave/cli/v2 to v2.23.7
- 0371695 chore(deps): update dependency aquaproj/aqua-registry to v3.103.0
- dbf7e98 fix(deps): update module github.com/urfave/cli/v2 to v2.23.6
- 32cd955 chore(deps): update golang docker tag to v1.19.4
- 6e71bb6 fix(deps): update module golang.org/x/oauth2 to v0.3.0
- 11d6381 chore(deps): update actions/setup-go action to v3.4.0
- 37e9c40 chore(deps): update dependency aquaproj/aqua-registry to v3.101.0
- 33d4ffd chore(deps): update dependency aquaproj/aqua-registry to v3.100.0
- a006317 fix(deps): update module github.com/masterminds/sprig/v3 to v3.2.3
- 5b91ed5 chore(deps): update dependency aquaproj/aqua-registry to v3.99.0
- 7a0364d chore(deps): update dependency aquaproj/aqua-registry to v3.98.0
- 686688b chore(deps): update dependency aquaproj/aqua-registry to v3.97.0
- f219d74 chore(deps): update dependency aquaproj/aqua-registry to v3.96.0
- 3337a7b chore(deps): update dependency aquaproj/aqua-registry to v3.95.0
- 1c770a5 chore(deps): update dependency aquaproj/aqua-registry to v3.94.2
- a5b3cdb chore(deps): update dependency aquaproj/aqua to v1.25.0
- 2e38a9e fix(deps): update module golang.org/x/oauth2 to v0.2.0
- 8eaff6e chore(deps): update dependency aquaproj/aqua-registry to v3.94.1
- bab1e8c fix(deps): update module github.com/urfave/cli/v2 to v2.23.5
- e9a8a63 chore(deps): update dependency aquaproj/aqua to v1.24.0
- b425988 chore(deps): update dependency aquaproj/aqua-registry to v3.89.0
- cff66b1 fix(deps): update module github.com/urfave/cli/v2 to v2.23.4
- d5db3e0 chore(deps): update dependency aquaproj/aqua-registry to v3.88.0
- 03a224c chore(deps): update dependency aquaproj/aqua-registry to v3.87.0
- cbceaa4 chore(deps): update dependency aquaproj/aqua to v1.22.0
- 17871bb fix(deps): update module github.com/urfave/cli/v2 to v2.23.2
- d3230c5 chore(deps): update dependency aquaproj/aqua-registry to v3.86.0
- 7cd612d chore(deps): update golang docker tag to v1.19.3
- 6268a5e chore(deps): update dependency aquaproj/aqua-registry to v3.85.0
- 8d4b25b fix(deps): update module github.com/urfave/cli/v2 to v2.23.0
- 7c879c9 chore(deps): update dependency aquaproj/aqua-registry to v3.84.0
- 69d22ac chore(deps): update dependency aquaproj/aqua-registry to v3.83.0
- 48792a3 chore(deps): update dependency aquaproj/aqua-registry to v3.82.0
- 3ea42ae chore(deps): update dependency aquaproj/aqua-registry to v3.81.0
- 4458b8e fix(deps): update module github.com/stretchr/testify to v1.8.1
- 4bec64c fix(deps): update module github.com/urfave/cli/v2 to v2.20.3
- 2c716c6 chore(deps): update dependency aquaproj/aqua-registry to v3.80.0
- 12729f0 chore(deps): update dependency golangci/golangci-lint to v1.50.1
- 736cb6c chore(deps): update dependency aquaproj/aqua-registry to v3.79.0
- 35236de fix(deps): update module golang.org/x/oauth2 to v0.1.0
- 7756129 chore(deps): update dependency aquaproj/aqua-registry to v3.78.0
- 6523f15 Merge pull request #628 from suzuki-shunsuke/renovate/pin-dependencies
- 6de1d81 chore: pin versions
- 2acc520 chore(deps): pin dependencies
- 9249c64 Merge pull request #627 from suzuki-shunsuke/chore/renovate-pinGitHubActionDigests
- c9ceeac chore(renovate): use helpers:pinGitHubActionDigests
- a433a8c chore(deps): update dependency aquaproj/aqua-registry to v3.77.0
- b1be799 chore(deps): update dependency aquaproj/aqua to v1.21.0
- 0091c87 chore(deps): update dependency aquaproj/aqua-registry to v3.76.2
- 367559b chore(deps): update dependency aquaproj/aqua-registry to v3.76.1
- 041f579 fix(deps): update module github.com/urfave/cli/v2 to v2.20.2
- 489100f chore(deps): update dependency aquaproj/aqua-registry to v3.76.0
- 4ca31ff chore(deps): update dependency aquaproj/aqua-registry to v3.75.0
- 72294f0 chore(deps): update dependency aquaproj/aqua-registry to v3.74.1
- 324efe0 chore(deps): update dependency aquaproj/aqua-registry to v3.74.0
- afd7b92 chore(deps): update dependency aquaproj/aqua-registry to v3.73.0
- 4997a4f chore(deps): update dependency aquaproj/aqua to v1.20.2
- ff971f9 chore(deps): update dependency aquaproj/aqua to v1.20.1
- cbca500 chore(deps): update dependency aquaproj/aqua to v1.20.0
- bb1c634 fix(deps): update module github.com/urfave/cli/v2 to v2.19.2
- 83fd36e fix(deps): update module github.com/urfave/cli/v2 to v2.19.1
- b4e640e chore(deps): update dependency aquaproj/aqua-registry to v3.72.0
- 8230cfd chore(deps): update dependency aquaproj/aqua-registry to v3.71.0
- 72c9451 chore(deps): update dependency aquaproj/aqua-registry to v3.70.0
- fe85163 chore(deps): update dependency aquaproj/aqua-registry to v3.69.0
- d870fc7 chore(deps): update dependency aquaproj/aqua-registry to v3.68.0
- 057dcdf chore(deps): update golang docker tag to v1.19.2
- 772a281 chore(deps): update dependency golangci/golangci-lint to v1.50.0
- 029ecee chore(deps): update dependency aquaproj/aqua-registry to v3.67.0
- 0eef34b chore(deps): update dependency aquaproj/aqua-registry to v3.66.0
- baad262 chore(deps): update dependency aquaproj/aqua-registry to v3.65.0
- ed5c1e3 chore(deps): update dependency aquaproj/aqua to v1.19.5
- fa47612 chore(deps): update dependency aquaproj/aqua-registry to v3.64.0
- 9e90c90 fix(deps): update module github.com/urfave/cli/v2 to v2.17.1
- 34f55d4 chore(deps): update dependency aquaproj/aqua-registry to v3.63.0
- ca5b9b9 chore(deps): update dependency aquaproj/aqua-registry to v3.62.0
- 3318fb9 chore(deps): update dependency aquaproj/aqua to v1.19.4
- 7ba8dc1 chore(deps): update dependency aquaproj/aqua-registry to v3.61.0
- 574b881 chore(deps): update module go to 1.19
- 91e1a74 chore(deps): update dependency aquaproj/aqua-registry to v3.60.0
- 4072c07 chore(deps): update dependency aquaproj/aqua to v1.19.3
v5.0.0
Pull Requests | Issues | v4.5.2...v5.0.0
⚠️ Breaking Changes ⚠️
#523 Remove features to output environment variables for security
- Some template functions are removed:
expandenv
,env
,getHostByName
- configuration
complement
is removed
How to migrate
- Use the
-var
option instead ofenv
- github-comment supports Google Cloud Build, so you don't have to use the configuration
ci
for Google Cloud Build - tfactioin >= v0.5.13 supports github-comment v5.0.0 ref