Skip to content

Instantly share code, notes, and snippets.

@nilebox
Created August 20, 2020 23:01
Show Gist options
  • Save nilebox/c5f3d85dab34a99b7a6ee93404d5348b to your computer and use it in GitHub Desktop.
Save nilebox/c5f3d85dab34a99b7a6ee93404d5348b to your computer and use it in GitHub Desktop.
{
user(login: "nilebox") {
id
login
organizations(first: 10) {
nodes {
id
name
}
}
...UserContributions
}
}
fragment UserContributions on User {
opentelemetryContributions: contributionsCollection(
from: "2020-03-01T00:00:00",
to: "2020-08-31T00:00:00",
organizationID: "MDEyOk9yZ2FuaXphdGlvbjQ5OTk4MDAy"
) {
...OrgContribution
}
gcpContributions: contributionsCollection(
from: "2020-03-01T00:00:00",
to: "2020-08-31T00:00:00",
organizationID: "MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE"
) {
...OrgContribution
}
ocContributions: contributionsCollection(
from: "2020-03-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