ContributionsCollection

A contributions collection aggregates contributions such as opened issues and commits created by a user.

Fields

contributionCalendar (ContributionCalendar!)

A calendar of this user's contributions on GitHub.

doesEndInCurrentMonth (Boolean!)

Determine if this collection's time span ends in the current month.

earliestRestrictedContributionDate (Date)

The date of the first restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts.

endedAt (DateTime!)

The ending date and time of this collection.

hasActivityInThePast (Boolean!)

Does the user have any more activity in the timeline that occurred prior to the collection's time range?

hasAnyContributions (Boolean!)

Determine if there are any contributions in this collection.

hasAnyRestrictedContributions (Boolean!)

Determine if the user made any contributions in this time frame whose details are not visible because they were made in a private repository. Can only be true if the user enabled private contribution counts.

isSingleDay (Boolean!)

Whether or not the collector's time span is all within the same day.

joinedGitHubContribution (JoinedGitHubContribution)

When the user signed up for GitHub. This will be null if that sign up date falls outside the collection's time range and ignoreTimeRange is false.

Argument Type Description
ignoreTimeRange Boolean

If true, the contribution will be returned even if the user signed up outside of the collection's time range.

The default value is false.

latestRestrictedContributionDate (Date)

The date of the most recent restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts.

mostRecentCollectionWithActivity (ContributionsCollection)

When this collection's time range does not include any activity from the user, use this to get a different collection from an earlier time range that does have activity.

mostRecentCollectionWithoutActivity (ContributionsCollection)

Returns a different contributions collection from an earlier time range than this one that does not have any contributions.

popularIssueContribution (CreatedIssueContribution)

The issue the user opened on GitHub that received the most comments in the specified time frame.

popularPullRequestContribution (CreatedPullRequestContribution)

The pull request the user opened on GitHub that received the most comments in the specified time frame.

restrictedContributionsCount (Int!)

A count of contributions made by the user that the viewer cannot access. Only non-zero when the user has chosen to share their private contribution counts.

startedAt (DateTime!)

The beginning date and time of this collection.

totalCommitContributions (Int!)

How many commits were made by the user in this time span.

totalIssueContributions (Int!)

How many issues the user opened.

Argument Type Description
excludeFirst Boolean

Should the user's first issue ever be excluded from this count.

The default value is false.

excludePopular Boolean

Should the user's most commented issue be excluded from this count.

The default value is false.

totalPullRequestContributions (Int!)

How many pull requests the user opened.

Argument Type Description
excludeFirst Boolean

Should the user's first pull request ever be excluded from this count.

The default value is false.

excludePopular Boolean

Should the user's most commented pull request be excluded from this count.

The default value is false.

totalPullRequestReviewContributions (Int!)

How many pull request reviews the user left.

totalRepositoriesWithContributedCommits (Int!)

How many different repositories the user committed to.

totalRepositoriesWithContributedIssues (Int!)

How many different repositories the user opened issues in.

Argument Type Description
excludeFirst Boolean

Should the user's first issue ever be excluded from this count.

The default value is false.

excludePopular Boolean

Should the user's most commented issue be excluded from this count.

The default value is false.

totalRepositoriesWithContributedPullRequestReviews (Int!)

How many different repositories the user left pull request reviews in.

totalRepositoriesWithContributedPullRequests (Int!)

How many different repositories the user opened pull requests in.

Argument Type Description
excludeFirst Boolean

Should the user's first pull request ever be excluded from this count.

The default value is false.

excludePopular Boolean

Should the user's most commented pull request be excluded from this count.

The default value is false.

totalRepositoryContributions (Int!)

How many repositories the user created.

Argument Type Description
excludeFirst Boolean

Should the user's first repository ever be excluded from this count.

The default value is false.

user (User!)

The user who made the contributions in this collection.