Skip to content

[BUG]: Resource github_repository_ruleset inconsistence issue #2818

@neptune19821220

Description

@neptune19821220

Expected Behavior

We want to enable the feature "Automatically request Copilot code review" for our ruleset.
Since this feature is not supported by provider yet , we selected this option manually after we created a ruleset by terraform.
The provider should recognize that this ruleset is not changed in subsequent plan/apply run.

Actual Behavior

If I select the option "Automatically request Copilot code review", a new github_repository_ruleset resource will be created in next terraform plan.
But terraform failed to create the ruleset because of ruleset name duplication in next terraform apply.
Then I remove the selection of "Automatically request Copilot code review", terraform can recognize that this ruleset not changed and shows no change.

Terraform Version

Terraform v1.13.3
on darwin_arm64
Provider plugin: v6.7.0

Affected Resource(s)

  • github_repository_ruleset

Terraform Configuration Files

Steps to Reproduce

  1. terraform apply -> create a ruleset resource
  2. select the option "Automatically request Copilot code review"
  3. terraform plan -> shows terraform will create a new ruleset
  4. terraform apply -> failed to create because of ruleset name duplication
  5. Remove the selection "Automatically request Copilot code review"
  6. terraform plan -> show "no change"

Debug Output

Panic Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    ✅ Done

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions