We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--json
nameWithOwner
1 parent a2307e3 commit 3f3d4e3Copy full SHA for 3f3d4e3
pkg/cmd/repo/list/http.go
@@ -158,7 +158,7 @@ pagination:
158
159
listResult.TotalCount = result.Search.RepositoryCount
160
for _, repo := range result.Search.Nodes {
161
- if listResult.Owner == "" {
+ if listResult.Owner == "" && repo.NameWithOwner != "" {
162
idx := strings.IndexRune(repo.NameWithOwner, '/')
163
listResult.Owner = repo.NameWithOwner[:idx]
164
}
0 commit comments