Last active
July 18, 2020 12:18
-
-
Save guneysus/986ff9f6d7c8ab70371d6045fed08d22 to your computer and use it in GitHub Desktop.
Github GraphQL API Queries Try at: https://developer.github.com/v4/explorer/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
viewer { | |
createdAt | |
repositoriesContributedTo(last: 100, orderBy: {field: STARGAZERS, direction: DESC}, includeUserRepositories: false, contributionTypes: [COMMIT, ISSUE, REPOSITORY, PULL_REQUEST, PULL_REQUEST_REVIEW]) { | |
nodes { | |
primaryLanguage { | |
name | |
color | |
} | |
nameWithOwner | |
stargazers { | |
totalCount | |
} | |
url | |
homepageUrl | |
isArchived | |
} | |
edges { | |
node { | |
shortDescriptionHTML | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
viewer { | |
createdAt | |
repositoriesContributedTo(last: 100, | |
orderBy: {field: STARGAZERS, direction: DESC}, | |
includeUserRepositories: false, contributionTypes: [COMMIT, ISSUE, REPOSITORY, PULL_REQUEST, PULL_REQUEST_REVIEW]) { | |
nodes { | |
primaryLanguage { | |
name | |
color | |
} | |
nameWithOwner | |
stargazers { | |
totalCount | |
} | |
url | |
homepageUrl | |
isArchived | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
viewer { | |
contributionsCollection { | |
hasActivityInThePast | |
hasAnyContributions | |
hasAnyRestrictedContributions | |
contributionCalendar { | |
totalContributions | |
} | |
issueContributions { | |
totalCount | |
} | |
totalCommitContributions | |
totalIssueContributions | |
totalPullRequestContributions | |
totalPullRequestReviewContributions | |
totalRepositoriesWithContributedCommits | |
totalRepositoriesWithContributedIssues | |
totalRepositoriesWithContributedPullRequestReviews | |
totalRepositoriesWithContributedPullRequests | |
totalRepositoryContributions | |
contributionYears | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query MyQuery { | |
viewer { | |
createdAt | |
followers { | |
totalCount | |
} | |
following { | |
totalCount | |
} | |
login | |
name | |
repositoriesContributedTo(contributionTypes: [COMMIT, ISSUE, PULL_REQUEST_REVIEW, PULL_REQUEST, REPOSITORY], includeUserRepositories: false, first: 100, orderBy: {field: STARGAZERS, direction: DESC}, privacy: PUBLIC) { | |
totalCount | |
pageInfo { | |
endCursor | |
hasNextPage | |
} | |
nodes { | |
nameWithOwner | |
stargazers { | |
totalCount | |
} | |
url | |
createdAt | |
} | |
edges { | |
node { | |
primaryLanguage { | |
name | |
color | |
} | |
nameWithOwner | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query MyQuery { | |
viewer { | |
createdAt | |
followers { | |
totalCount | |
} | |
following { | |
totalCount | |
} | |
login | |
name | |
repositoriesContributedTo(contributionTypes: [COMMIT, ISSUE, PULL_REQUEST_REVIEW, PULL_REQUEST, REPOSITORY] , includeUserRepositories: false, first: 100, orderBy: {field: CREATED_AT, direction: DESC}, privacy: PUBLIC) { | |
totalCount | |
pageInfo { | |
endCursor | |
hasNextPage | |
} | |
nodes { | |
nameWithOwner | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
viewer { | |
contributionsCollection { | |
pullRequestContributions(first: 100) { | |
totalCount | |
} | |
repositoryContributions { | |
totalCount | |
} | |
totalCommitContributions | |
totalIssueContributions | |
totalPullRequestContributions | |
totalPullRequestReviewContributions | |
totalRepositoriesWithContributedCommits | |
totalRepositoriesWithContributedIssues | |
totalRepositoriesWithContributedPullRequestReviews | |
totalRepositoriesWithContributedPullRequests | |
totalRepositoryContributions | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment