We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a Terraform plan results in no changes, the PR job fails with the following error:
RequestError [HttpError]: Validation Failed: {"resource":"IssueComment","code":"unprocessable","field":"data","message":"Body cannot be blank"}
This happens because the terraform-change-pr-commenter action attempts to post an empty comment to the PR, which is not allowed by the GitHub API.
terraform-change-pr-commenter
Push a blank main.tf file to trigger a Terraform plan.
main.tf
Terraform detects no infrastructure changes and outputs:
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue: Terraform PR Job Fails When No Changes Are Detected
Description
When a Terraform plan results in no changes, the PR job fails with the following error:
This happens because the
terraform-change-pr-commenter
action attempts to post an empty comment to the PR, which is not allowed by the GitHub API.Steps to Reproduce
Push a blank
main.tf
file to trigger a Terraform plan.Terraform detects no infrastructure changes and outputs:
The text was updated successfully, but these errors were encountered: