[BUG] github_repository resource errors with squash_merge
/merge commit
message/title
#1730
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Short summary:
resource_github_repository
tries to update the fieldssquash_merge_commit_message/squash_merge_commit_title
eventhough the
allow_squash_merge
is set tofalse
. The terraform state is correctly updated with default values (i.eterraform-provider-github/github/resource_github_repository.go
Line 186 in 42ebbe0
allow_squash_merge
is set tofalse
before and the endpoints to configuresquash_merge_commit_message/squash_merge_commit_title
are not available anymore.Note that the same issue will occur with both:
squash_merge_commit_message/squash_merge_commit_title
andmerge_commit_message/merge_commit_title
pairs.Minimal example to reproduce the bug:
Step 1: apply the following configuraion.
Step 2: change your configuration to :
Step 3: and run
terraform apply
will result in:
Step 4: but the next
terraform plan/apply
will always be empty.No changes. Your infrastructure matches the configuration.
Possibly connected to: #1295
The text was updated successfully, but these errors were encountered: