public class GHRepositoryStatistics extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GHRepositoryStatistics.CodeFrequency
The type CodeFrequency.
|
static class |
GHRepositoryStatistics.CommitActivity
The type CommitActivity.
|
static class |
GHRepositoryStatistics.ContributorStats
The type ContributorStats.
|
static class |
GHRepositoryStatistics.Participation
The type Participation.
|
static class |
GHRepositoryStatistics.PunchCardItem
The type PunchCardItem.
|
| Constructor and Description |
|---|
GHRepositoryStatistics(GHRepository repo)
Instantiates a new Gh repository statistics.
|
| Modifier and Type | Method and Description |
|---|---|
List<GHRepositoryStatistics.CodeFrequency> |
getCodeFrequency()
Get the number of additions and deletions per week.
|
PagedIterable<GHRepositoryStatistics.CommitActivity> |
getCommitActivity()
Get the last year of commit activity data.
|
PagedIterable<GHRepositoryStatistics.ContributorStats> |
getContributorStats()
Get contributors list with additions, deletions, and commit count.
|
PagedIterable<GHRepositoryStatistics.ContributorStats> |
getContributorStats(boolean waitTillReady)
Deprecated.
|
GHRepositoryStatistics.Participation |
getParticipation()
Get the weekly commit count for the repository owner and everyone else.
|
List<GHRepositoryStatistics.PunchCardItem> |
getPunchCard()
Get the number of commits per hour in each day.
|
public GHRepositoryStatistics(GHRepository repo)
repo - the repopublic PagedIterable<GHRepositoryStatistics.ContributorStats> getContributorStats() throws IOException, InterruptedException
IOException - the io exceptionInterruptedException - the interrupted exception@Preview @Deprecated public PagedIterable<GHRepositoryStatistics.ContributorStats> getContributorStats(boolean waitTillReady) throws IOException, InterruptedException
waitTillReady - Whether to sleep the thread if necessary until the statistics are ready. This is true by default.IOException - the io exceptionInterruptedException - the interrupted exceptionpublic PagedIterable<GHRepositoryStatistics.CommitActivity> getCommitActivity() throws IOException
IOException - the io exceptionpublic List<GHRepositoryStatistics.CodeFrequency> getCodeFrequency() throws IOException
IOException - the io exceptionpublic GHRepositoryStatistics.Participation getParticipation() throws IOException
IOException - the io exceptionpublic List<GHRepositoryStatistics.PunchCardItem> getPunchCard() throws IOException
IOException - the io exceptionCopyright © 2020. All rights reserved.