-
-
Notifications
You must be signed in to change notification settings - Fork 55
fix: fix HasNoChanges condition in parser #1871
New issue
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
fix: fix HasNoChanges condition in parser #1871
Conversation
|
Thank you for your contribution! For instance, the following output includes $ terraform plan -detailed-exitcode
null_resource.foo: Refreshing state... [id=2480052438659796792]
Terraform will perform the following actions:
# null_resource.example has moved to null_resource.foo
resource "null_resource" "foo" {
id = "2480052438659796792"
}
Plan: 0 to add, 0 to change, 0 to destroy.
Changes to Outputs:
~ foo = "foo" -> "bar"
You can apply this plan to save these new output values to the Terraform state, without changing any real infrastructure.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform
apply" now.So
|
|
Thank you for your quick reply and consideration.
That's true. Maybe there are two options: Option1: use
|
|
@suzuki-shunsuke Could you check my comment above when you have time? Thank you! |
|
Sorry for late reply. |
|
@suzuki-shunsuke Thank you for your feedback. I've made a pr for option2 #1896. Please check it when you have time. |
What
Add
Plan: 0 to add, 0 to change, 0 to destroy.to the regex condition forno changes.Why
Close #358
I think this is not a perfect solution but would still be better than the current behavior adding
add-or-updatelabel for the pr that DOESN'T have any addition or update.If the label were
has-diff, it'd be ok to align with the result ofterraform plan -detailed-exitcodebut the labeladd-or-updateis different interpretation than the exit code.Check List
Require signed commits, so all commits must be signed