Repository navigation
feat: Expose remaining org attributes in github_organization_settings - #3389
JamBalaya56562 wants to merge 1 commit into
Conversation
|
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with |
a985464 to
9a172ce
Compare
Surface seven attributes that already exist on the upstream go-github v85 Organization struct but were not yet exposed by the resource: - members_allowed_repository_creation_type - two_factor_requirement_enabled - members_can_delete_repositories - members_can_invite_outside_collaborators - members_can_delete_issues - display_commenter_full_name_setting_enabled - readers_can_create_discussions The five non-existing data source attributes are also synced to github_organization for consistency. All new attributes use Optional + Computed so existing configurations that omit them continue to track the live API value without producing phantom diffs (per the pattern recommended in #3385). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
9a172ce to
9a0e439
Compare
|
Thanks for putting this PR together and taking the time to contribute! We're temporarily moving to an issue-first model (see CONTRIBUTING.md) where only collaborators can open PRs while we work through the backlog. Because of that, I'm going to close this PR for now. I've linked it on #3388 so we don't lose your work or context when we pick that issue up. Feel free to add a 👍 or any extra notes there to help us prioritize it. |
Resolves #3388
Before the change?
github_organization_settingsresource exposed only a subset of the attributes thatPATCH /orgs/{org}accepts. Seven attributes already modeled on go-github v85'sOrganizationstruct were not configurable through Terraform, forcing users to manage them via the GitHub UI.After the change?
github_organization_settings:members_allowed_repository_creation_typetwo_factor_requirement_enabledmembers_can_delete_repositoriesmembers_can_invite_outside_collaboratorsmembers_can_delete_issuesdisplay_commenter_full_name_setting_enabledreaders_can_create_discussionsgithub_organizationdata source for symmetry (two_factor_requirement_enabledandmembers_allowed_repository_creation_typewere already exposed there via Expose additional attributes for GitHub organizations. #1850).Organizationstruct in the upstreamgo-githublibrary; this PR simply surfaces them in the Terraform provider, in the same shape as feat: Add support for members_can_change_repo_visibility in github_organization_settings #3147.Optional + Computedso existing configurations that omit them continue to track the live API value without producing phantom diffs (per the pattern recommended in [BUG] members_can_create_internal_repositories in github_organization_settings missing Computed: true causing phantom diffs #3385).Out of scope and intentionally left for follow-up:
members_can_change_repo_visibility— already covered by feat: Add support for members_can_change_repo_visibility in github_organization_settings #3147deploy_keys_enabled_for_repositories— needs ago-githubchange first (field missing from theOrganizationstruct)members_can_create_teams,members_can_view_dependency_insights— REST docs only show these in GET responses; need empirical verification that PATCH accepts them before addingPull request checklist
Does this introduce a breaking change?