Skip to content

Instantly share code, notes, and snippets.

@aabmass
Last active August 20, 2020 16:40
Show Gist options
  • Select an option

  • Save aabmass/53cef127b4d20eefac8332d0a8c125d1 to your computer and use it in GitHub Desktop.

Select an option

Save aabmass/53cef127b4d20eefac8332d0a8c125d1 to your computer and use it in GitHub Desktop.
GraphQL for my (or anyones) Github contributions
{
user(login: "aabmass") {
id
login
organizations(first: 10) {
nodes {
id
name
}
}
...UserContributions
}
}
fragment UserContributions on User {
opentelemetryContributions: contributionsCollection(
from: "2020-05-01T00:00:00",
to: "2020-08-31T00:00:00",
organizationID: "MDEyOk9yZ2FuaXphdGlvbjQ5OTk4MDAy"
) {
...OrgContribution
}
gcpContributions: contributionsCollection(
from: "2020-05-01T00:00:00",
to: "2020-08-31T00:00:00",
organizationID: "MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE"
) {
...OrgContribution
}
ocContributions: contributionsCollection(
from: "2020-05-01T00:00:00",
to: "2020-08-31T00:00:00",
organizationID: "MDEyOk9yZ2FuaXphdGlvbjI2OTQ0NTI1"
) {
...OrgContribution
}
}
fragment OrgContribution on ContributionsCollection {
pullRequestContributionsByRepository {
repository {
nameWithOwner
}
contributions(first: 100) {
totalCount
nodes {
pullRequest {
number
additions
deletions
}
}
}
}
pullRequestReviewContributionsByRepository {
repository {
nameWithOwner
}
contributions(first: 100) {
totalCount
nodes {
pullRequest {
number
}
pullRequestReview {
comments {
totalCount
}
}
}
}
}
issueContributionsByRepository {
repository {
nameWithOwner
}
contributions(first: 100) {
totalCount
nodes {
issue {
number
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment