Skip to content

fix: use correct getter for members_can_fork_private_repositories in org data source#3359

Merged
deiga merged 1 commit intointegrations:mainfrom
andrewesweet:fix/org-datasource-fork-getter
Apr 22, 2026
Merged

fix: use correct getter for members_can_fork_private_repositories in org data source#3359
deiga merged 1 commit intointegrations:mainfrom
andrewesweet:fix/org-datasource-fork-getter

Conversation

@andrewesweet
Copy link
Copy Markdown
Contributor

@andrewesweet andrewesweet commented Apr 22, 2026

Resolves #3362


Before the change?

  • data_source_github_organization.go:257 calls organization.GetMembersCanCreatePrivateRepos() to populate members_can_fork_private_repositories, returning the value of members_can_create_private_repositories instead.

After the change?

  • Uses the correct getter organization.GetMembersCanForkPrivateRepos(), returning the actual fork permission value.

Pull request checklist

  • Schema migrations have been created if needed
  • 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

…org data source

The github_organization data source was using
GetMembersCanCreatePrivateRepos() instead of
GetMembersCanForkPrivateRepos() to populate the
members_can_fork_private_repositories attribute, causing it to
return the value of members_can_create_private_repositories instead.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@github-actions
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! 🚀

@github-actions github-actions Bot added the Type: Bug Something isn't working as documented label Apr 22, 2026
@deiga deiga added this to the v6.12.0 milestone Apr 22, 2026
@deiga deiga merged commit 4cf1e9d into integrations:main Apr 22, 2026
8 checks passed
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.

[BUG]: github_organization data source returns wrong value for members_can_fork_private_repositories

3 participants