mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-22 23:25:24 +00:00
renamed repositoryName to name
This commit is contained in:
@@ -24,70 +24,70 @@ namespace Octokit.Reactive
|
||||
/// Returns a list of <see cref="Contributor"/> for the given repository
|
||||
/// </summary>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="repositoryName">The name of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <returns>A list of <see cref="Contributor"/></returns>
|
||||
public IObservable<IEnumerable<Contributor>> GetContributors(string owner, string repositoryName)
|
||||
public IObservable<IEnumerable<Contributor>> GetContributors(string owner, string name)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
return _client.Repository.Statistics.GetContributors(owner, repositoryName).ToObservable();
|
||||
return _client.Repository.Statistics.GetContributors(owner, name).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the last year of commit activity grouped by week.
|
||||
/// </summary>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="repositoryName">The name of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <returns>The last year of <see cref="CommitActivity"/></returns>
|
||||
public IObservable<CommitActivity> GetCommitActivity(string owner, string repositoryName)
|
||||
public IObservable<CommitActivity> GetCommitActivity(string owner, string name)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
return _client.Repository.Statistics.GetCommitActivity(owner, repositoryName).ToObservable();
|
||||
return _client.Repository.Statistics.GetCommitActivity(owner, name).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
|
||||
/// </summary>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="repositoryName">The name of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <returns>Returns a weekly aggregate of the number additions and deletion</returns>
|
||||
public IObservable<CodeFrequency> GetCodeFrequency(string owner, string repositoryName)
|
||||
public IObservable<CodeFrequency> GetCodeFrequency(string owner, string name)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
return _client.Repository.Statistics.GetCodeFrequency(owner, repositoryName).ToObservable();
|
||||
return _client.Repository.Statistics.GetCodeFrequency(owner, name).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the total commit counts for the owner and total commit counts in total.
|
||||
/// </summary>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="repositoryName">The name of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <returns>Returns <see cref="Participation"/>from oldest week to now</returns>
|
||||
public IObservable<Participation> GetParticipation(string owner, string repositoryName)
|
||||
public IObservable<Participation> GetParticipation(string owner, string name)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
return _client.Repository.Statistics.GetParticipation(owner, repositoryName).ToObservable();
|
||||
return _client.Repository.Statistics.GetParticipation(owner, name).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a list of the number of commits per hour in each day
|
||||
/// </summary>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="repositoryName">The name of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <returns>Returns commit counts per hour in each day</returns>
|
||||
public IObservable<PunchCard> GetPunchCard(string owner, string repositoryName)
|
||||
public IObservable<PunchCard> GetPunchCard(string owner, string name)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
return _client.Repository.Statistics.GetPunchCard(owner, repositoryName).ToObservable();
|
||||
return _client.Repository.Statistics.GetPunchCard(owner, name).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user