mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-28 17:05:57 +00:00
3c818934b8
* Add release notes and bump version to 0.24 * run "build FormatCode" to fix up whitespace/formatting issues * Fix failing Ssh key tests due to "validation exception". This key must be in use on github (under another user, most likely from these tests failing). Changed to a new SSH key and tweaked tests to reduce chance of a key being created and not destroyed * Assignee and Assignees cant both be specified on NewIssue. We missed this one in the PR. Marked Assignee as [Obsolete] and fixed tests to use Assignees * Fix a couple of Reactions tests that were calling the wrong client methods * Fix timeline tests - looks like the response class has changed shape a bit, it now has an Issue object in the payload and Id field isnt present (leaving Id field there in case other timeline events do use it) * Fix some following tests that require the test user to follow more than 1 other user * Unskip these Event tests now because apparently they work! * add breaking changes notes * Update ApiErrorMessageSafe to return null for empty and whitespace strings (#1540) * return null if ApiError.Message is empty or whitespace * Uncomment test, which now passes * update release notes to include PR1540 * Add "Bot" AccountType, was causing a deserialization exception when running the integration test "SearchForExcludedLanguage" (#1541) * Update to include PR1541 * add bullets to make release notes easier to read * markup additional code mentions in notes * Fix grammar fields => field
90 lines
4.9 KiB
C#
90 lines
4.9 KiB
C#
using System;
|
|
|
|
namespace Octokit.Reactive
|
|
{
|
|
/// <summary>
|
|
/// A client for GitHub's Git Repository Status API.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="http://developer.github.com/v3/repos/statuses/">Repository Statuses API documentation</a> for more information.
|
|
/// </remarks>
|
|
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>
|
|
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="repositoryId">The Id of the repository</param>
|
|
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
|
|
IObservable<CommitStatus> GetAll(long repositoryId, 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>
|
|
IObservable<CommitStatus> GetAll(string owner, string name, string reference, ApiOptions options);
|
|
|
|
/// <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="repositoryId">The Id 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>
|
|
IObservable<CommitStatus> GetAll(long repositoryId, 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>
|
|
IObservable<CombinedCommitStatus> GetCombined(string owner, string name, string reference);
|
|
|
|
/// <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="repositoryId">The Id of the repository</param>
|
|
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
|
|
IObservable<CombinedCommitStatus> GetCombined(long repositoryId, 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="newCommitStatus">The commit status to create</param>
|
|
IObservable<CommitStatus> Create(string owner, string name, string reference, NewCommitStatus newCommitStatus);
|
|
|
|
/// <summary>
|
|
/// Creates a commit status for the specified ref.
|
|
/// </summary>
|
|
/// <param name="repositoryId">The Id of the repository</param>
|
|
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
|
|
/// <param name="newCommitStatus">The commit status to create</param>
|
|
IObservable<CommitStatus> Create(long repositoryId, string reference, NewCommitStatus newCommitStatus);
|
|
}
|
|
}
|