mirror of
https://github.com/git-touch/git-touch
synced 2024-12-16 18:28:51 +01:00
103 lines
2.0 KiB
GraphQL
103 lines
2.0 KiB
GraphQL
|
query($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
|
||
|
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
|
||
|
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
|
||
|
stargazers {
|
||
|
totalCount
|
||
|
}
|
||
|
forks {
|
||
|
totalCount
|
||
|
}
|
||
|
primaryLanguage {
|
||
|
color
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|