Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Github GraphQL API Queries Try at: https://developer.github.com/v4/explorer/
{
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
}
}
}
}
}
{
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
}
}
}
}
{
viewer {
contributionsCollection {
hasActivityInThePast
hasAnyContributions
hasAnyRestrictedContributions
contributionCalendar {
totalContributions
}
issueContributions {
totalCount
}
totalCommitContributions
totalIssueContributions
totalPullRequestContributions
totalPullRequestReviewContributions
totalRepositoriesWithContributedCommits
totalRepositoriesWithContributedIssues
totalRepositoriesWithContributedPullRequestReviews
totalRepositoriesWithContributedPullRequests
totalRepositoryContributions
contributionYears
}
}
}
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
}
}
}
}
}
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
}
}
}
}
{
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