mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 20:13:40 +00:00
Added method to get CombinedCommitStatus
This commit is contained in:
@@ -41,6 +41,24 @@ namespace Octokit
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a combined view of statuses for the specified reference. A reference can be a commit SHA, a branch name, or
|
||||
/// a tag name.
|
||||
/// </summary>
|
||||
/// <remarks>Only users with pull access can see this.</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
|
||||
/// <returns></returns>
|
||||
public Task<CombinedCommitStatus> GetCombined(string owner, string name, string reference)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
|
||||
|
||||
return ApiConnection.Get<CombinedCommitStatus>(ApiUrls.CombinedCommitStatus(owner, name, reference));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a commit status for the specified ref.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user