Skip to content

feat: Expose remaining org attributes in github_organization_settings - #3389

Closed
JamBalaya56562 wants to merge 1 commit into
integrations:mainfrom
JamBalaya56562:feat/expose-org-attrs
Closed

JamBalaya56562 wants to merge 1 commit into
integrations:mainfrom
JamBalaya56562:feat/expose-org-attrs

Conversation

@JamBalaya56562

@JamBalaya56562 JamBalaya56562 commented May 2, 2026 •

Copy link
Copy Markdown

Resolves #3388


Before the change?

  • The github_organization_settings resource exposed only a subset of the attributes that PATCH /orgs/{org} accepts. Seven attributes already modeled on go-github v85's Organization struct were not configurable through Terraform, forcing users to manage them via the GitHub UI.

After the change?

Out of scope and intentionally left for follow-up:

Pull request checklist

  • Schema migrations have been created if needed (n/a — additive only)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

  • Yes
  • No

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown

👋 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 Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

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]>
@JamBalaya56562
JamBalaya56562 force-pushed the feat/expose-org-attrs branch from 9a172ce to 9a0e439 Compare June 13, 2026 01:08
@theipster

Copy link
Copy Markdown

For anyone else like me who only read the "out of scope" section in the PR description without reading the PR activity, I guess #3432 and #3433 now exist to add the #deploy_keys_enabled_for_repositories and #secret_scanning_push_protection_custom_link[_enabled] attributes too. ❤️

@robert-crandall

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: Expose remaining org attributes in github_organization_settings

3 participants