MCPcopy
hub / github.com/cli/cli / resolveOwner

Function resolveOwner

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

Source from the content-addressed store, hash-verified

253}
254
255func resolveOwner(client *api.Client, hostname, orgName string) (*ownerResponse, error) {
256 var response ownerResponse
257 err := client.REST(hostname, "GET", fmt.Sprintf("users/%s", orgName), nil, &response)
258 return &response, err
259}
260
261type teamResponse struct {
262 ID uint64 `json:"id"`

Callers 1

repoCreateFunction · 0.85

Calls 1

RESTMethod · 0.65

Tested by

no test coverage detected