Skip to content

[BUG]: allowed_merge_methods shows additional diff when value is absent #3125

@fh-yuxiao-zeng

Description

@fh-yuxiao-zeng

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

Metadata

Metadata

Assignees

Labels

Type: BugSomething isn't working as documented

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions