terraform-provider-github
terraform-provider-github copied to clipboard
feat: add github_organization_member_privileges resource
This PR adds the github_organization_member_privileges resource to manage member privileges in the settings of an organization.
Destroying this resource won't do anything (just removing the resource from the state), as these settings are settings of an organization, and they always exist if an organization exists. For the very same reasons create and update do the very same things except that create creates the Id of the resource.
The official GitHub REST API is not up to date with what we can do in the current UI of github.com and the go client is even less up to date. I implemented what's supported in the current go client.
Tested on a v2.21 GHES deployment and ran into the following failed test output:
testing.go:654: Step 0 error: Check failed: Check 1/1 error: got defaultRepoPermission ""; want "none"
🤔 still investigating, but feel free to send ideas.
👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!
👋 Hey Friends, this pull request has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!