mirror of
https://github.com/git-touch/git-touch
synced 2024-12-25 23:34:01 +01:00
106 lines
2.0 KiB
GraphQL
106 lines
2.0 KiB
GraphQL
query GhRepos($owner: String!, $after: String, $isStar: Boolean!) {
|
|
repositoryOwner(login: $owner) {
|
|
__typename
|
|
login
|
|
avatarUrl
|
|
... on User {
|
|
repositories(
|
|
first: 30
|
|
after: $after
|
|
orderBy: { field: UPDATED_AT, direction: DESC }
|
|
) @skip(if: $isStar) {
|
|
totalCount # TODO:
|
|
pageInfo {
|
|
hasNextPage
|
|
endCursor
|
|
}
|
|
nodes {
|
|
owner {
|
|
login
|
|
avatarUrl
|
|
}
|
|
name
|
|
description
|
|
isPrivate
|
|
isFork
|
|
updatedAt
|
|
stargazers {
|
|
totalCount
|
|
}
|
|
forks {
|
|
totalCount
|
|
}
|
|
primaryLanguage {
|
|
color
|
|
name
|
|
}
|
|
}
|
|
}
|
|
starredRepositories(
|
|
first: 30
|
|
after: $after
|
|
orderBy: { field: STARRED_AT, direction: DESC }
|
|
) @include(if: $isStar) {
|
|
pageInfo {
|
|
hasNextPage
|
|
endCursor
|
|
}
|
|
nodes {
|
|
owner {
|
|
login
|
|
avatarUrl
|
|
}
|
|
name
|
|
description
|
|
isPrivate
|
|
isFork
|
|
updatedAt
|
|
stargazers {
|
|
totalCount
|
|
}
|
|
forks {
|
|
totalCount
|
|
}
|
|
primaryLanguage {
|
|
color
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
... on Organization {
|
|
pinnableItems(first: 30, after: $after, types: [REPOSITORY])
|
|
@skip(if: $isStar) {
|
|
__typename
|
|
pageInfo {
|
|
hasNextPage
|
|
endCursor
|
|
}
|
|
nodes {
|
|
... on Repository {
|
|
owner {
|
|
login
|
|
avatarUrl
|
|
}
|
|
name
|
|
description
|
|
isPrivate
|
|
isFork
|
|
updatedAt
|
|
stargazers {
|
|
totalCount
|
|
}
|
|
forks {
|
|
totalCount
|
|
}
|
|
primaryLanguage {
|
|
color
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|