mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-21 06:35:11 +00:00
52 lines
2.6 KiB
C#
52 lines
2.6 KiB
C#
using System;
|
|
|
|
namespace Octokit.Reactive
|
|
{
|
|
public interface IObservableCommitStatusClient
|
|
{
|
|
/// <summary>
|
|
/// Retrieves commit 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>
|
|
IObservable<CommitStatus> GetAll(string owner, string name, string reference);
|
|
|
|
/// <summary>
|
|
/// Retrieves commit 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>
|
|
/// <param name="options">Options for changing the API response</param>
|
|
/// <returns></returns>
|
|
IObservable<CommitStatus> GetAll(string owner, string name, string reference, ApiOptions options);
|
|
|
|
/// <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>
|
|
IObservable<CombinedCommitStatus> GetCombined(string owner, string name, string reference);
|
|
|
|
/// <summary>
|
|
/// Creates a commit status for the specified ref.
|
|
/// </summary>
|
|
/// <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>
|
|
/// <param name="commitStatus">The commit status to create</param>
|
|
/// <returns></returns>
|
|
IObservable<CommitStatus> Create(string owner, string name, string reference, NewCommitStatus commitStatus);
|
|
}
|
|
}
|