Merge pull request #6608 from cli/revert-6552-owner-affiliations

Fix listing repositories for a named GitHub user
This commit is contained in:
Mislav Marohnić 2022-11-14 14:01:42 +01:00 committed by GitHub
commit 3fd73ec470
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}