From 5408197a0676c7842a3eb58702f3d26c9f2d6147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 14 Nov 2022 12:46:41 +0100 Subject: [PATCH] Revert "Fix `repo list` when belonging to org with IP Allow list enabled" --- pkg/cmd/repo/list/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/repo/list/http.go b/pkg/cmd/repo/list/http.go index 00190ecbb..191ba0d18 100644 --- a/pkg/cmd/repo/list/http.go +++ b/pkg/cmd/repo/list/http.go @@ -80,7 +80,7 @@ func listRepos(client *http.Client, hostname string, limit int, owner string, fi query := fmt.Sprintf(`query RepositoryList(%s) { %s { login - repositories(first: $perPage, after: $endCursor, privacy: $privacy, isFork: $fork, affiliations: OWNER, orderBy: { field: PUSHED_AT, direction: DESC }) { + repositories(first: $perPage, after: $endCursor, privacy: $privacy, isFork: $fork, ownerAffiliations: OWNER, orderBy: { field: PUSHED_AT, direction: DESC }) { nodes{%s} totalCount pageInfo{hasNextPage,endCursor}