Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ OwnerLogin
Method
OwnerLogin
pkg/cmd/project/shared/queries/queries.go:329–334 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
327
}
328
329
func
(p ProjectMutationQuery) OwnerLogin() string {
330
if
p.OwnerType() ==
"User"
{
331
return
p.Owner.User.Login
332
}
333
return
p.Owner.Organization.Login
334
}
335
336
type
Projects
struct
{
337
Nodes []Project
Callers
1
ExportData
Method · 0.95
Calls
1
OwnerType
Method · 0.95
Tested by
no test coverage detected