ContributionsCollection Object
A contributions collection aggregates contributions such as opened issues and commits created by a user.
Fields
#
commitContributionsByRepository
Commit contributions made by the user, grouped by repository.
contributionCalendar
A calendar of this user's contributions on GitHub.
contributionYears
The years the user has been making contributions with the most recent year first.
doesEndInCurrentMonth
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.
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
Does the user have any more activity in the timeline that occurred prior to the collection's time range?
hasAnyRestrictedContributions
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.
issueContributionsByRepository
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
Pull request contributions made by the user.
pullRequestContributionsByRepository
Pull request contributions made by the user, grouped by repository.
pullRequestReviewContributions
Pull request review contributions made by the user. Returns the most recently submitted review for each PR reviewed by the user.
pullRequestReviewContributionsByRepository
Pull request review contributions made by the user, grouped by repository.
repositoryContributions
A list of repositories owned by the user that the user created in this time range.
restrictedContributionsCount
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.
totalRepositoriesWithContributedCommits
How many different repositories the user committed to.
totalRepositoriesWithContributedIssues
How many different repositories the user opened issues in.
totalRepositoriesWithContributedPullRequestReviews
How many different repositories the user left pull request reviews in.
totalRepositoriesWithContributedPullRequests
How many different repositories the user opened pull requests in.
Usages
#
References
#
- Field mostRecentCollectionWithActivity from ContributionsCollection
- Field mostRecentCollectionWithoutActivity from ContributionsCollection
- Field contributionsCollection from User
ContributionOrder
