public static RepositoryCommits ( long repositoryId ) : Uri | ||
repositoryId | long | The Id of the repository |
Результат | Uri |
/// <summary> /// Gets all commits for a given repository /// </summary> /// <param name="repositoryId">The Id of the repository</param> /// <param name="request">Used to filter list of commits returned</param> /// <param name="options">Options for changing the API response</param> public Task <IReadOnlyList <GitHubCommit> > GetAll(long repositoryId, CommitRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <GitHubCommit>(ApiUrls.RepositoryCommits(repositoryId), request.ToParametersDictionary(), options)); }
/// <summary> /// Gets all commits for a given repository /// </summary> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="request">Used to filter list of commits returned</param> /// <param name="options">Options for changing the API response</param> /// <returns></returns> public Task <IReadOnlyList <GitHubCommit> > GetAll(string owner, string name, CommitRequest request, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(request, "request"); return(_apiConnection.GetAll <GitHubCommit>(ApiUrls.RepositoryCommits(owner, name), request.ToParametersDictionary(), options)); }