added new overloads

This commit is contained in:
Alexander Efremov
2016-06-13 12:05:05 +07:00
parent 9d012f5e1d
commit dcac7b9305
4 changed files with 290 additions and 1 deletions

View File

@@ -19,6 +19,13 @@ namespace Octokit.Reactive
/// <returns>A list of <see cref="Contributor"/></returns>
IObservable<IEnumerable<Contributor>> GetContributors(string owner, string name);
/// <summary>
/// Returns a list of <see cref="Contributor"/> for the given repository
/// </summary>
/// <param name="repositoryId">The ID of the repository</param>
/// <returns>A list of <see cref="Contributor"/></returns>
IObservable<IEnumerable<Contributor>> GetContributors(int repositoryId);
/// <summary>
/// Returns the last year of commit activity grouped by week.
/// </summary>
@@ -27,6 +34,13 @@ namespace Octokit.Reactive
/// <returns>The last year of <see cref="CommitActivity"/></returns>
IObservable<CommitActivity> GetCommitActivity(string owner, string name);
/// <summary>
/// Returns the last year of commit activity grouped by week.
/// </summary>
/// <param name="repositoryId">The ID of the repository</param>
/// <returns>The last year of <see cref="CommitActivity"/></returns>
IObservable<CommitActivity> GetCommitActivity(int repositoryId);
/// <summary>
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
/// </summary>
@@ -35,6 +49,13 @@ namespace Octokit.Reactive
/// <returns>Returns a weekly aggregate of the number additions and deletion</returns>
IObservable<CodeFrequency> GetCodeFrequency(string owner, string name);
/// <summary>
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
/// </summary>
/// <param name="repositoryId">The ID of the repository</param>
/// <returns>Returns a weekly aggregate of the number additions and deletion</returns>
IObservable<CodeFrequency> GetCodeFrequency(int repositoryId);
/// <summary>
/// Returns the total commit counts for the owner and total commit counts in total.
/// </summary>
@@ -43,6 +64,13 @@ namespace Octokit.Reactive
/// <returns>Returns <see cref="Participation"/>from oldest week to now</returns>
IObservable<Participation> GetParticipation(string owner, string name);
/// <summary>
/// Returns the total commit counts for the owner and total commit counts in total.
/// </summary>
/// <param name="repositoryId">The ID of the repository</param>
/// <returns>Returns <see cref="Participation"/>from oldest week to now</returns>
IObservable<Participation> GetParticipation(int repositoryId);
/// <summary>
/// Returns a list of the number of commits per hour in each day
/// </summary>
@@ -50,5 +78,12 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param>
/// <returns>Returns commit counts per hour in each day</returns>
IObservable<PunchCard> GetPunchCard(string owner, string name);
/// <summary>
/// Returns a list of the number of commits per hour in each day
/// </summary>
/// <param name="repositoryId">The ID of the repository</param>
/// <returns>Returns commit counts per hour in each day</returns>
IObservable<PunchCard> GetPunchCard(int repositoryId);
}
}