Skip to content

Type: Bug | Fixes validation error when forking policy has been set by enterprise administrators. - #1362

Merged
kfcampbell merged 2 commits into
integrations:mainfrom
kuhlman-labs:bug/org_settings_validation
Nov 16, 2022
Merged

kfcampbell merged 2 commits into
integrations:mainfrom
kuhlman-labs:bug/org_settings_validation

Conversation

@kuhlman-labs

Copy link
Copy Markdown
Contributor

Resolves #1333


Behavior

Before the change?

  • If the repo forking option is not set in the github_organization_settings resource it will still send it as part of the payload which causes validation errors if a forking policy has been set at the enterprise level.

After the change?

  • If the field is not set in the terraform resource then the payload will not contain that field as well, avoiding validation errors.

Other information


Additional info

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Added the appropriate label for the given change

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes (Please add the Type: Breaking change label)
  • No

If Yes, what's the impact:

  • N/A

Pull request type

Please add the corresponding label for change this PR introduces:

  • Bugfix: Type: Bug
  • Feature/model/API additions: Type: Feature
  • Updates to docs or samples: Type: Documentation
  • Dependencies/code cleanup: Type: Maintenance

@kfcampbell
kfcampbell merged commit 2a0fd41 into integrations:main Nov 16, 2022
kazaker pushed a commit to auto1-oss/terraform-provider-github that referenced this pull request Dec 28, 2022
avidspartan1 pushed a commit to avidspartan1/terraform-provider-github that referenced this pull request Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working as documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

github_organization_settings errors for forking policy has been set by enterprise administrators

2 participants