mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-29 09:22:25 +00:00
renamed repositoryName to name
This commit is contained in:
@@ -15,40 +15,40 @@ 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>
|
||||
IObservable<IEnumerable<Contributor>> GetContributors(string owner, string repositoryName);
|
||||
IObservable<IEnumerable<Contributor>> GetContributors(string owner, string name);
|
||||
|
||||
/// <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>
|
||||
IObservable<CommitActivity> GetCommitActivity(string owner, string repositoryName);
|
||||
IObservable<CommitActivity> GetCommitActivity(string owner, string name);
|
||||
|
||||
/// <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>
|
||||
IObservable<CodeFrequency> GetCodeFrequency(string owner, string repositoryName);
|
||||
IObservable<CodeFrequency> GetCodeFrequency(string owner, string name);
|
||||
|
||||
/// <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>
|
||||
IObservable<Participation> GetParticipation(string owner, string repositoryName);
|
||||
IObservable<Participation> GetParticipation(string owner, string name);
|
||||
|
||||
/// <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>
|
||||
IObservable<PunchCard> GetPunchCard(string owner, string repositoryName);
|
||||
IObservable<PunchCard> GetPunchCard(string owner, string name);
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,85 +16,85 @@ namespace Octokit
|
||||
/// 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>
|
||||
Task<IReadOnlyList<Contributor>> GetContributors(string owner, string repositoryName);
|
||||
Task<IReadOnlyList<Contributor>> GetContributors(string owner, string name);
|
||||
|
||||
/// <summary>
|
||||
/// 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>
|
||||
/// <param name="cancellationToken">A token used to cancel this potentially long running request</param>
|
||||
/// <returns>A list of <see cref="Contributor"/></returns>
|
||||
Task<IReadOnlyList<Contributor>> GetContributors(string owner, string repositoryName, CancellationToken cancellationToken);
|
||||
Task<IReadOnlyList<Contributor>> GetContributors(string owner, string name, CancellationToken cancellationToken);
|
||||
|
||||
/// <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>
|
||||
Task<CommitActivity> GetCommitActivity(string owner, string repositoryName);
|
||||
Task<CommitActivity> GetCommitActivity(string owner, string name);
|
||||
|
||||
/// <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>
|
||||
/// <param name="cancellationToken">A token used to cancel this potentially long running request</param>
|
||||
/// <returns>The last year of <see cref="CommitActivity"/></returns>
|
||||
Task<CommitActivity> GetCommitActivity(string owner, string repositoryName, CancellationToken cancellationToken);
|
||||
Task<CommitActivity> GetCommitActivity(string owner, string name, CancellationToken cancellationToken);
|
||||
|
||||
/// <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>
|
||||
Task<CodeFrequency> GetCodeFrequency(string owner, string repositoryName);
|
||||
Task<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="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>
|
||||
/// <param name="cancellationToken">A token used to cancel this potentially long running request</param>
|
||||
/// <returns>Returns a weekly aggregate of the number additions and deletion</returns>
|
||||
Task<CodeFrequency> GetCodeFrequency(string owner, string repositoryName, CancellationToken cancellationToken);
|
||||
Task<CodeFrequency> GetCodeFrequency(string owner, string name, CancellationToken cancellationToken);
|
||||
|
||||
/// <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>
|
||||
Task<Participation> GetParticipation(string owner, string repositoryName);
|
||||
Task<Participation> GetParticipation(string owner, string name);
|
||||
|
||||
/// <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>
|
||||
/// <param name="cancellationToken">A token used to cancel this potentially long running request</param>
|
||||
/// <returns>Returns <see cref="Participation"/>from oldest week to now</returns>
|
||||
Task<Participation> GetParticipation(string owner, string repositoryName, CancellationToken cancellationToken);
|
||||
Task<Participation> GetParticipation(string owner, string name, CancellationToken cancellationToken);
|
||||
|
||||
/// <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>
|
||||
Task<PunchCard> GetPunchCard(string owner, string repositoryName);
|
||||
Task<PunchCard> GetPunchCard(string owner, string name);
|
||||
|
||||
/// <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>
|
||||
/// <param name="cancellationToken">A token used to cancel this potentially long running request</param>
|
||||
/// <returns>Returns commit counts per hour in each day</returns>
|
||||
Task<PunchCard> GetPunchCard(string owner, string repositoryName, CancellationToken cancellationToken);
|
||||
Task<PunchCard> GetPunchCard(string owner, string name, CancellationToken cancellationToken);
|
||||
}
|
||||
}
|
||||
@@ -25,53 +25,53 @@ namespace Octokit
|
||||
/// 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 Task<IReadOnlyList<Contributor>> GetContributors(string owner, string repositoryName)
|
||||
public Task<IReadOnlyList<Contributor>> GetContributors(string owner, string name)
|
||||
{
|
||||
return GetContributors(owner, repositoryName, CancellationToken.None);
|
||||
return GetContributors(owner, name, CancellationToken.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 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>
|
||||
/// <param name="cancellationToken">A token used to cancel this potentially long running request</param>
|
||||
/// <returns>A list of <see cref="Contributor"/></returns>
|
||||
public Task<IReadOnlyList<Contributor>> GetContributors(string owner, string repositoryName, CancellationToken cancellationToken)
|
||||
public Task<IReadOnlyList<Contributor>> GetContributors(string owner, string name, CancellationToken cancellationToken)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
return ApiConnection.GetQueuedOperation<Contributor>(ApiUrls.StatsContributors(owner, repositoryName), cancellationToken);
|
||||
return ApiConnection.GetQueuedOperation<Contributor>(ApiUrls.StatsContributors(owner, name), cancellationToken);
|
||||
}
|
||||
|
||||
/// <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 Task<CommitActivity> GetCommitActivity(string owner, string repositoryName)
|
||||
public Task<CommitActivity> GetCommitActivity(string owner, string name)
|
||||
{
|
||||
return GetCommitActivity(owner, repositoryName, CancellationToken.None);
|
||||
return GetCommitActivity(owner, name, CancellationToken.None);
|
||||
}
|
||||
|
||||
/// <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>
|
||||
/// <param name="cancellationToken">A token used to cancel this potentially long running request</param>
|
||||
/// <returns>The last year of <see cref="CommitActivity"/></returns>
|
||||
public async Task<CommitActivity> GetCommitActivity(string owner, string repositoryName, CancellationToken cancellationToken)
|
||||
public async Task<CommitActivity> GetCommitActivity(string owner, string name, CancellationToken cancellationToken)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
var activity = await ApiConnection.GetQueuedOperation<WeeklyCommitActivity>(
|
||||
ApiUrls.StatsCommitActivity(owner, repositoryName), cancellationToken).ConfigureAwait(false);
|
||||
ApiUrls.StatsCommitActivity(owner, name), cancellationToken).ConfigureAwait(false);
|
||||
return new CommitActivity(activity);
|
||||
}
|
||||
|
||||
@@ -79,27 +79,27 @@ namespace Octokit
|
||||
/// 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 Task<CodeFrequency> GetCodeFrequency(string owner, string repositoryName)
|
||||
public Task<CodeFrequency> GetCodeFrequency(string owner, string name)
|
||||
{
|
||||
return GetCodeFrequency(owner, repositoryName, CancellationToken.None);
|
||||
return GetCodeFrequency(owner, name, CancellationToken.None);
|
||||
}
|
||||
|
||||
/// <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>
|
||||
/// <param name="cancellationToken">A token used to cancel this potentially long running request</param>
|
||||
/// <returns>Returns a weekly aggregate of the number additions and deletion</returns>
|
||||
public async Task<CodeFrequency> GetCodeFrequency(string owner, string repositoryName, CancellationToken cancellationToken)
|
||||
public async Task<CodeFrequency> GetCodeFrequency(string owner, string name, CancellationToken cancellationToken)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
var rawFrequencies = await ApiConnection.GetQueuedOperation<long[]>(
|
||||
ApiUrls.StatsCodeFrequency(owner, repositoryName), cancellationToken).ConfigureAwait(false);
|
||||
ApiUrls.StatsCodeFrequency(owner, name), cancellationToken).ConfigureAwait(false);
|
||||
return new CodeFrequency(rawFrequencies);
|
||||
}
|
||||
|
||||
@@ -107,27 +107,27 @@ namespace Octokit
|
||||
/// 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 Task<Participation> GetParticipation(string owner, string repositoryName)
|
||||
public Task<Participation> GetParticipation(string owner, string name)
|
||||
{
|
||||
return GetParticipation(owner, repositoryName, CancellationToken.None);
|
||||
return GetParticipation(owner, name, CancellationToken.None);
|
||||
}
|
||||
|
||||
/// <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>
|
||||
/// <param name="cancellationToken">A token used to cancel this potentially long running request</param>
|
||||
/// <returns>Returns <see cref="Participation"/>from oldest week to now</returns>
|
||||
public async Task<Participation> GetParticipation(string owner, string repositoryName, CancellationToken cancellationToken)
|
||||
public async Task<Participation> GetParticipation(string owner, string name, CancellationToken cancellationToken)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
var result = await ApiConnection.GetQueuedOperation<Participation>(
|
||||
ApiUrls.StatsParticipation(owner, repositoryName), cancellationToken).ConfigureAwait(false);
|
||||
ApiUrls.StatsParticipation(owner, name), cancellationToken).ConfigureAwait(false);
|
||||
return result.FirstOrDefault();
|
||||
}
|
||||
|
||||
@@ -135,27 +135,27 @@ namespace Octokit
|
||||
/// 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 Task<PunchCard> GetPunchCard(string owner, string repositoryName)
|
||||
public Task<PunchCard> GetPunchCard(string owner, string name)
|
||||
{
|
||||
return GetPunchCard(owner, repositoryName, CancellationToken.None);
|
||||
return GetPunchCard(owner, name, CancellationToken.None);
|
||||
}
|
||||
|
||||
/// <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>
|
||||
/// <param name="cancellationToken">A token used to cancel this potentially long running request</param>
|
||||
/// <returns>Returns commit counts per hour in each day</returns>
|
||||
public async Task<PunchCard> GetPunchCard(string owner, string repositoryName, CancellationToken cancellationToken)
|
||||
public async Task<PunchCard> GetPunchCard(string owner, string name, CancellationToken cancellationToken)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
var punchCardData = await ApiConnection.GetQueuedOperation<int[]>(
|
||||
ApiUrls.StatsPunchCard(owner, repositoryName), cancellationToken).ConfigureAwait(false);
|
||||
ApiUrls.StatsPunchCard(owner, name), cancellationToken).ConfigureAwait(false);
|
||||
return new PunchCard(punchCardData);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user