Magidoc

ContributionsCollection
Object

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

Fields

#

commitContributionsByRepository

Non-null

Commit contributions made by the user, grouped by repository.

contributionCalendar

Non-null

A calendar of this user's contributions on GitHub.

contributionYears

[ Int !]!
Non-null

The years the user has been making contributions with the most recent year first.

doesEndInCurrentMonth

Non-null

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

earliestRestrictedContributionDate

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

Non-null

The ending date and time of this collection.

firstIssueContribution

The first issue the user opened on GitHub. This will be null if that issue was opened outside the collection's time range and ignoreTimeRange is false. If the issue is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned.

firstPullRequestContribution

The first pull request the user opened on GitHub. This will be null if that pull request was opened outside the collection's time range and ignoreTimeRange is not true. If the pull request is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned.

firstRepositoryContribution

The first repository the user created on GitHub. This will be null if that first repository was created outside the collection's time range and ignoreTimeRange is false. If the repository is not visible, then a RestrictedContribution is returned.

hasActivityInThePast

Non-null

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

hasAnyContributions

Non-null

Determine if there are any contributions in this collection.

hasAnyRestrictedContributions

Non-null

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

Non-null

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

issueContributions

Non-null

A list of issues the user opened.

issueContributionsByRepository

Non-null

Issue contributions made by the user, grouped by repository.

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.

latestRestrictedContributionDate

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

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

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

popularIssueContribution

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

popularPullRequestContribution

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

pullRequestContributions

Non-null

Pull request contributions made by the user.

pullRequestContributionsByRepository

Non-null

Pull request contributions made by the user, grouped by repository.

pullRequestReviewContributions

Non-null

Pull request review contributions made by the user. Returns the most recently submitted review for each PR reviewed by the user.

pullRequestReviewContributionsByRepository

Non-null

Pull request review contributions made by the user, grouped by repository.

repositoryContributions

Non-null

A list of repositories owned by the user that the user created in this time range.

restrictedContributionsCount

Non-null

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

Non-null

The beginning date and time of this collection.

totalCommitContributions

Non-null

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

totalIssueContributions

Non-null

How many issues the user opened.

totalPullRequestContributions

Non-null

How many pull requests the user opened.

totalPullRequestReviewContributions

Non-null

How many pull request reviews the user left.

totalRepositoriesWithContributedCommits

Non-null

How many different repositories the user committed to.

totalRepositoriesWithContributedIssues

Non-null

How many different repositories the user opened issues in.

totalRepositoriesWithContributedPullRequestReviews

Non-null

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

totalRepositoriesWithContributedPullRequests

Non-null

How many different repositories the user opened pull requests in.

totalRepositoryContributions

Non-null

How many repositories the user created.

user

Non-null

The user who made the contributions in this collection.

Usages

#

References

#

  • Field contributionsCollection from User