Skip to content

[FEAT]: Add data source support for the External Groups of a Team #3295

@orirawlings

Description

@orirawlings

Describe the need

Currently github_external_groups is available, but it lists all external groups for the entire organization. It uses the v3 REST API for /orgs/{org}/external-groups, via the go-github TeamService.ListExternalGroups().

I have a need to lookup the external groups for a single team, rather than the entire organization. This is exposed via the v3 REST API at /orgs/{org}/teams/{team_slug}/external-groups, and in go-github via TeamService.ListExternalGroupsForTeamBySlug().

Perhaps the best interface would be something like:

data "github_team_external_groups" "example" {
  slug = "example"
}

where the output attributes match the same schema as data "github_external_groups".

SDK Version

No response

API Version

No response

Relevant log output

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: FeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions