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

Function resolveOwner

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

Source from the content-addressed store, hash-verified

260}
261
262func resolveOwner(client *api.Client, hostname, orgName string) (*ownerResponse, error) {
263 var response ownerResponse
264 u, err := safeurl.JoinPath("users", orgName)
265 if err != nil {
266 return nil, err
267 }
268 err = client.REST(hostname, "GET", u.String(), nil, &response)
269 return &response, err
270}
271
272type teamResponse struct {
273 ID uint64 `json:"id"`

Callers 1

repoCreateFunction · 0.85

Calls 3

JoinPathFunction · 0.92
RESTMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected