Releases: suzuki-shunsuke/tfcmt
v3.4.0-1
Pull Requests | Issues | v3.3.0...v3.4.0-1
Features
#387 #390 Create comments to pull request instead of commit
GitHub no longer shows commit comments in the pull request timeline 1.
From v3.4.0, tfcmt gets a pull request from commit hash and creates a comment to not commit but associated pull request.
If there is no associated pull request, tfcmt sends a comment to commit.
Others
#392 Update Go from v1.18.4 to v1.18.5
Contributors
Thank you, Contributors!
v4.0.0-1
Pull Requests | Issues | v3.3.0...v4.0.0-1
Changelog
- 5efcbb9 fix: remove features to output environment variables for security
v3.3.0
Pull Requests | Issues | v3.2.5...v3.3.0
Features
#376 Support Google Cloud Build
Please set the environment variable GOOGLE_CLOUD_BUILD
.
GOOGLE_CLOUD_BUILD=true
And please set the following environment variables using substitutions.
COMMIT_SHA
BUILD_ID
PROJECT_ID
_PR_NUMBER
_REGION
Please specify the repository owner and name in tfcmt.yaml
.
e.g.
tfcmt.yaml
repo_owner: suzuki-shunsuke
repo_name: tfcmt
v3.3.0-0
Pull Requests | Issues | v3.2.5...v3.3.0-0
Features
#376 Support Google Cloud Build
Please set the environment variable GOOGLE_CLOUD_BUILD
.
GOOGLE_CLOUD_BUILD=true
And please set the following environment variables using substitutions.
COMMIT_SHA
BUILD_ID
PROJECT_ID
_PR_NUMBER
_REGION
Please specify the repository owner and name in tfcmt.yaml
.
e.g.
tfcmt.yaml
repo_owner: suzuki-shunsuke
repo_name: tfcmt
v4.0.0-0
Pull Requests | Issues | ...v4.0.0-0
Changelog
- 47a9cac Merge branch 'main' into fix/prevent-output-env
v3.2.5
v3.2.5-0
Pull Requests | Issues | ...v3.2.5-0
Changelog
v3.2.4
Pull Requests | Issues | v3.2.3...v3.2.4
Bug Fixes
#317 Set os.Stdin
when terraform command is run
This change allows you to run terraform apply
without -auto-approve
option.
AS IS
tfcmt apply -- terraform apply -no-color
null_resource.foo: Refreshing state... [id=8966706083595703589]
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.bar will be created
+ resource "null_resource" "bar" {
+ id = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value:
Error: error asking for approval: EOF
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value:
Error: error asking for approval: EOF
TO BE
tfcmt apply -- terraform apply -no-color
null_resource.foo: Refreshing state... [id=8966706083595703589]
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.bar will be created
+ resource "null_resource" "bar" {
+ id = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
null_resource.bar: Creating...
null_resource.bar: Creation complete after 0s [id=7780302426904623778]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
v3.2.3
Pull Requests | Issues | v3.2.2...v3.2.3
Bug Fixes
#300 #304 Fix the support of GitHub Enterprise. Support setting GitHub API v4 endpoint
https://suzuki-shunsuke.github.io/tfcmt/github-enterprise
To use tfcmt for GitHub Enterprise, please set the following fields in tfcmt.yaml
.
e.g. tfcmt.yaml
ghe_base_url: https://example.com
ghe_graphql_endpoint: https://example.com/graphql
- https://docs.github.com/en/[email protected]/rest/overview/resources-in-the-rest-api#current-version
- https://docs.github.com/en/[email protected]/graphql/guides/forming-calls-with-graphql#the-graphql-endpoint
v3.2.2
Pull Requests | Issues | v3.2.1...v3.2.2
Features
#288 (apply): Get the associated pull request with commit
The behavior of getting notification destination (pull request or commit) in tfcmt apply
is improved.
AS IS
- Get pull request number from commit message
- Get SHA from previous commit
TO BE
- Get pull request number from associated pull request with GitHub API. https://docs.github.com/en/rest/commits/commits#list-pull-requests-associated-with-a-commit
- Get SHA from current commit
By getting associated pull request via GitHub API, this works even if the pull request was merged by squash merge.
Others
#279 Update Go to v1.18.1
#280 Update go-github to v43
#277 #278 #284 #287 Refactoring