1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-20 04:05:26 +01:00
git-touch-android-ios-app/lib/graphql/gh_user.graphql

187 lines
3.3 KiB
GraphQL
Raw Normal View History

2020-01-07 08:07:57 +01:00
query GhUser($login: String!, $isViewer: Boolean!) {
2020-01-01 09:35:50 +01:00
repositoryOwner(login: $login) @skip(if: $isViewer) {
__typename
id
2019-12-07 14:12:48 +01:00
login
avatarUrl
url
... on User {
name
bio
company
location
email
2020-01-01 08:58:49 +01:00
createdAt
websiteUrl
starredRepositories {
totalCount
}
followers {
totalCount
}
following {
totalCount
}
2020-01-01 06:26:20 +01:00
contributionsCollection {
contributionCalendar {
weeks {
contributionDays {
color
}
}
}
}
repositories(
first: 6
ownerAffiliations: OWNER
orderBy: { field: STARGAZERS, direction: DESC }
) {
totalCount
nodes {
owner {
login
avatarUrl
}
name
description
isPrivate
isFork
stargazers {
totalCount
}
forks {
totalCount
}
primaryLanguage {
color
name
}
}
}
pinnedItems(first: 6) {
2019-12-07 06:31:54 +01:00
totalCount # TODO: Add this for correct generated code
nodes {
__typename
... on Repository {
owner {
login
avatarUrl
}
name
description
isPrivate
isFork
stargazers {
totalCount
}
forks {
totalCount
}
primaryLanguage {
color
name
}
}
}
}
viewerCanFollow
viewerIsFollowing
}
... on Organization {
name
description
location
email
websiteUrl
2020-01-01 08:58:49 +01:00
createdAt
pinnedItems(first: 6) {
nodes {
__typename
... on Repository {
owner {
login
avatarUrl
}
name
description
isPrivate
isFork
stargazers {
totalCount
}
forks {
totalCount
}
primaryLanguage {
color
name
}
}
}
}
pinnableItems(first: 6, types: [REPOSITORY]) {
totalCount
nodes {
__typename
... on Repository {
owner {
login
avatarUrl
}
name
description
isPrivate
isFork
stargazers {
totalCount
}
forks {
totalCount
}
primaryLanguage {
color
name
}
}
}
}
membersWithRole {
totalCount
}
}
}
2020-01-01 09:35:50 +01:00
viewer @include(if: $isViewer) {
login
avatarUrl
url
name
bio
company
location
email
websiteUrl
createdAt
starredRepositories {
totalCount
}
followers {
totalCount
}
following {
totalCount
}
repositories {
totalCount
}
contributionsCollection {
contributionCalendar {
weeks {
contributionDays {
color
}
}
}
}
}
}