-
Notifications
You must be signed in to change notification settings - Fork 814
github_repository_file keeps sending empty commits with the same commit message despite no changes to file content #689
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
Comments
Have you tried this? lifecycle {
ignore_changes = [
commit_author,
commit_email,
commit_message
]
} It seems very buggy though, as you said with ignoring |
I had not tried ignoring the other two fields, but .. since the files were already created by and continue to use the same author / email (they are 100% managed by Terraform), I don't believe it would have made a difference |
@ahmadnassri I just tested it and confirmed that ignoring the commit_author and commit_email meant it stopped detecting changes. Don't ignore the message, otherwise it'll modify the old commit message no matter what. |
👋 Hey Friends, this issue has been automatically marked as |
Using v5.42.0 I cannot confirm that ignoring |
👋 Hey Friends, this issue has been automatically marked as |
Can we remove the stale label? This still an issue in v6.6.0. It's very annoying and it's clearly a bug. I can't figure out a reason why someone will expect that behaviour. Ignore changes makes it even more confusing since it uses previous existing commit messages |
(I had already opened an issue about this in the old repo, but after it moved here, seems to have been lost...)
Terraform Version
Terraform v0.14.5
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Should not be sending empty commits with the file content not having changed!
Actual Behavior
when running
terraform plan
everything looks correct, and there is no indication that any modifications to the referenced files will be triggered, but when runningterraform apply
a whole bunch of empty commits are sent with the same commit message templatesee this repo for a recent example: https://github.com/ahmadnassri/node-glob-promise/commits/master
all the commits starting with
chore(template)
are an example of thisI tried adding
but that simply re-uses whatever the previous commit message was for the file and commits anyways!
The text was updated successfully, but these errors were encountered: