MCPcopy Create free account
hub / github.com/cli/cli / resolveOrganizationTeam

Function resolveOrganizationTeam

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

Source from the content-addressed store, hash-verified

278}
279
280func resolveOrganizationTeam(client *api.Client, hostname, orgName, teamSlug string) (*teamResponse, error) {
281 var response teamResponse
282 u, err := safeurl.JoinPath("orgs", orgName, "teams", teamSlug)
283 if err != nil {
284 return nil, err
285 }
286 err = client.REST(hostname, "GET", u.String(), nil, &response)
287 return &response, err
288}
289
290func listTemplateRepositories(client *http.Client, hostname, owner string) ([]api.Repository, error) {
291 ownerConnection := "repositoryOwner(login: $owner)"

Callers 1

repoCreateFunction · 0.85

Calls 3

JoinPathFunction · 0.92
RESTMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected