MCPcopy
hub / github.com/cli/cli / resolveOrganizationTeam

Function resolveOrganizationTeam

pkg/cmd/repo/create/http.go:269–273  ·  view source on GitHub ↗
(client *api.Client, hostname, orgName, teamSlug string)

Source from the content-addressed store, hash-verified

267}
268
269func resolveOrganizationTeam(client *api.Client, hostname, orgName, teamSlug string) (*teamResponse, error) {
270 var response teamResponse
271 err := client.REST(hostname, "GET", fmt.Sprintf("orgs/%s/teams/%s", orgName, teamSlug), nil, &response)
272 return &response, err
273}
274
275func listTemplateRepositories(client *http.Client, hostname, owner string) ([]api.Repository, error) {
276 ownerConnection := "repositoryOwner(login: $owner)"

Callers 1

repoCreateFunction · 0.85

Calls 1

RESTMethod · 0.65

Tested by

no test coverage detected