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) {
|
2019-12-06 14:51:33 +01:00
|
|
|
__typename
|
2020-01-07 08:32:48 +01:00
|
|
|
id
|
2019-12-07 14:12:48 +01:00
|
|
|
login
|
|
|
|
avatarUrl
|
|
|
|
url
|
2019-12-06 14:51:33 +01:00
|
|
|
... on User {
|
|
|
|
name
|
|
|
|
bio
|
|
|
|
company
|
|
|
|
location
|
|
|
|
email
|
2020-01-01 08:58:49 +01:00
|
|
|
createdAt
|
2019-12-06 14:51:33 +01:00
|
|
|
websiteUrl
|
|
|
|
starredRepositories {
|
|
|
|
totalCount
|
|
|
|
}
|
|
|
|
followers {
|
|
|
|
totalCount
|
|
|
|
}
|
|
|
|
following {
|
|
|
|
totalCount
|
|
|
|
}
|
2020-01-01 06:26:20 +01:00
|
|
|
contributionsCollection {
|
|
|
|
contributionCalendar {
|
|
|
|
weeks {
|
|
|
|
contributionDays {
|
|
|
|
color
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-06 14:51:33 +01:00
|
|
|
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
|
2019-12-06 14:51:33 +01:00
|
|
|
nodes {
|
2019-12-07 08:17:32 +01:00
|
|
|
__typename
|
2019-12-06 14:51:33 +01:00
|
|
|
... 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
|
2019-12-06 14:51:33 +01:00
|
|
|
pinnedItems(first: 6) {
|
|
|
|
nodes {
|
2019-12-07 08:17:32 +01:00
|
|
|
__typename
|
2019-12-06 14:51:33 +01:00
|
|
|
... on Repository {
|
|
|
|
owner {
|
|
|
|
login
|
|
|
|
avatarUrl
|
|
|
|
}
|
|
|
|
name
|
|
|
|
description
|
|
|
|
isPrivate
|
|
|
|
isFork
|
|
|
|
stargazers {
|
|
|
|
totalCount
|
|
|
|
}
|
|
|
|
forks {
|
|
|
|
totalCount
|
|
|
|
}
|
|
|
|
primaryLanguage {
|
|
|
|
color
|
|
|
|
name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pinnableItems(first: 6, types: [REPOSITORY]) {
|
|
|
|
totalCount
|
|
|
|
nodes {
|
2019-12-07 08:17:32 +01:00
|
|
|
__typename
|
2019-12-06 14:51:33 +01:00
|
|
|
... 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) {
|
2020-01-27 07:43:10 +01:00
|
|
|
id
|
2020-01-01 09:35:50 +01:00
|
|
|
login
|
|
|
|
avatarUrl
|
|
|
|
url
|
|
|
|
name
|
|
|
|
bio
|
|
|
|
company
|
|
|
|
location
|
|
|
|
email
|
|
|
|
createdAt
|
2020-01-27 07:43:10 +01:00
|
|
|
websiteUrl
|
2020-01-01 09:35:50 +01:00
|
|
|
starredRepositories {
|
|
|
|
totalCount
|
|
|
|
}
|
|
|
|
followers {
|
|
|
|
totalCount
|
|
|
|
}
|
|
|
|
following {
|
|
|
|
totalCount
|
|
|
|
}
|
|
|
|
contributionsCollection {
|
|
|
|
contributionCalendar {
|
|
|
|
weeks {
|
|
|
|
contributionDays {
|
|
|
|
color
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-27 07:43:10 +01:00
|
|
|
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) {
|
|
|
|
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
|
2020-01-01 09:35:50 +01:00
|
|
|
}
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|