1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-16 18:28:51 +01:00
git-touch-android-ios-app/lib/graphql/github_repositories.graphql

103 lines
2.0 KiB
GraphQL
Raw Normal View History

2019-12-07 15:25:37 +01:00
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
}
}
}
}
}
}
}