Add support for enterprise teams #2
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces new data sources and resources for managing GitHub Enterprise Teams within the Terraform provider. It adds support for reading and managing enterprise teams, their memberships, and their associated organizations, along with comprehensive acceptance tests to ensure correct behavior. These changes provide users with more granular control and visibility over GitHub Enterprise Teams through Terraform.
New data sources and resources for GitHub Enterprise Teams:
github_enterprise_teamresource anddataSourceGithubEnterpriseTeamdata source, allowing users to manage and query individual enterprise teams by slug or ID. [1] [2] [3]github_enterprise_teamsdata source to list all teams in a given enterprise, exposing details such as team ID, slug, name, description, organization selection type, and group ID. [1] [2]github_enterprise_team_membershipresource anddataSourceGithubEnterpriseTeamMembershipdata source, enabling management and lookup of team memberships for users within an enterprise team. [1] [2] [3]github_enterprise_team_organizationsresource anddataSourceGithubEnterpriseTeamOrganizationsdata source, allowing assignment and querying of organizations associated with an enterprise team. [1] [2] [3]Acceptance tests for new enterprise team features:
github/data_source_github_enterprise_team_test.goandgithub/data_source_github_enterprise_teams_test.go, ensuring correct integration with the GitHub API and Terraform workflows. [1] [2]