-
Notifications
You must be signed in to change notification settings - Fork 949
[BUG]: allowed_merge_methods shows additional diff when value is absent #3125
Copy link
Copy link
Closed
Labels
Type: BugSomething isn't working as documentedSomething isn't working as documented
Milestone
Description
Expected Behavior
After we upgraded to the latest Github provider, we see a diff for all repositories regarding allowed_merge_methods. We are not specifying anything for this field, so I expect to see no changes.
Actual Behavior
We see a diff like this:
~ resource "github_repository_ruleset" "this" {
id = "xxx"
name = "main"
# (6 unchanged attributes hidden)
~ rules {
# (7 unchanged attributes hidden)
~ pull_request {
~ allowed_merge_methods = [
- "merge",
- "rebase",
- "squash",
]
# (5 unchanged attributes hidden)
}
}
# (1 unchanged block hidden)
}
Terraform Version
terraform-provider-github 6.10.2
Affected Resource(s)
github_repository_ruleset
Terraform Configuration Files
Steps to Reproduce
No response
Debug Output
Panic Output
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: BugSomething isn't working as documentedSomething isn't working as documented