Skip to content

Instantly share code, notes, and snippets.

@guneysus
Last active July 18, 2020 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guneysus/986ff9f6d7c8ab70371d6045fed08d22 to your computer and use it in GitHub Desktop.
Save guneysus/986ff9f6d7c8ab70371d6045fed08d22 to your computer and use it in GitHub Desktop.
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