mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 12:26:18 +00:00
Add pagination support to ReferencesClient. (#1694)
* Add pagination support to ReferencesClient. * Add missing unit tests for ReferencesClient * Add integration tests for ReferencesClient pagination. * Refactor assertion.
This commit is contained in:
committed by
Ryan Gribble
parent
e9c7e02377
commit
e1b6434832
@@ -50,6 +50,18 @@ namespace Octokit.Reactive
|
||||
/// <returns></returns>
|
||||
IObservable<Reference> GetAll(string owner, string name);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all references for a given repository
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/git/refs/#get-all-references
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Reference> GetAll(string owner, string name, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all references for a given repository
|
||||
/// </summary>
|
||||
@@ -60,6 +72,17 @@ namespace Octokit.Reactive
|
||||
/// <returns></returns>
|
||||
IObservable<Reference> GetAll(long repositoryId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all references for a given repository
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/git/refs/#get-all-references
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Reference> GetAll(long repositoryId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets references for a given repository by sub-namespace, i.e. "tags" or "heads"
|
||||
/// </summary>
|
||||
@@ -72,6 +95,19 @@ namespace Octokit.Reactive
|
||||
/// <returns></returns>
|
||||
IObservable<Reference> GetAllForSubNamespace(string owner, string name, string subNamespace);
|
||||
|
||||
/// <summary>
|
||||
/// Gets references for a given repository by sub-namespace, i.e. "tags" or "heads"
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/git/refs/#get-all-references
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="subNamespace">The sub-namespace to get references for</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Reference> GetAllForSubNamespace(string owner, string name, string subNamespace, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets references for a given repository by sub-namespace, i.e. "tags" or "heads"
|
||||
/// </summary>
|
||||
@@ -83,6 +119,18 @@ namespace Octokit.Reactive
|
||||
/// <returns></returns>
|
||||
IObservable<Reference> GetAllForSubNamespace(long repositoryId, string subNamespace);
|
||||
|
||||
/// <summary>
|
||||
/// Gets references for a given repository by sub-namespace, i.e. "tags" or "heads"
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/git/refs/#get-all-references
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="subNamespace">The sub-namespace to get references for</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Reference> GetAllForSubNamespace(long repositoryId, string subNamespace, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a reference for a given repository
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user