Skip to content

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

@andrewesweet

Description

@andrewesweet

Description

The github_organization data source uses the wrong getter method for the members_can_fork_private_repositories attribute.

In data_source_github_organization.go:257:

_ = d.Set("members_can_fork_private_repositories", organization.GetMembersCanCreatePrivateRepos())

This calls GetMembersCanCreatePrivateRepos() instead of GetMembersCanForkPrivateRepos(), causing the attribute to return the value of members_can_create_private_repositories instead of the actual fork permission.

Expected behavior

members_can_fork_private_repositories should return whether members can fork private repositories.

Actual behavior

Returns the value of members_can_create_private_repositories instead.

Terraform and provider version

All versions since the field was added.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions