mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 10:55:53 +00:00
Enable pagination convention tests (#1659)
* Unskip pagination convention tests and rework exclusion property names Also exclude Obsolete methods from pagination convention tests * Reaction APIs appear to support pagination, flag to exclude for now and mark a TODO that they need implementing * Repository invitation APIs need pagination implemented * Exclude methods that use an alternative pagination approach * Migrations, Licenses and References all need pagination implemented * Pagination not supported for these methods (determined by API doc and poking the API) so exclude them from convention tests * These methods need renaming to GetAll * Rename offending RepositoryTrafficClient GetReferrers and GetPaths to GetAllReferrers and GetAllPaths * Rename offending RepositoryBranchesClient methods from Get to GetAll
This commit is contained in:
@@ -214,6 +214,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
[Obsolete("Please use GetAllRequiredStatusChecksContexts instead")]
|
||||
IObservable<string> GetRequiredStatusChecksContexts(string owner, string name, string branch);
|
||||
|
||||
/// <summary>
|
||||
@@ -224,8 +225,30 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
[Obsolete("Please use GetAllRequiredStatusChecksContexts instead")]
|
||||
IObservable<string> GetRequiredStatusChecksContexts(long repositoryId, string branch);
|
||||
|
||||
/// <summary>
|
||||
/// Get the required status checks contexts for the specified branch
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
IObservable<string> GetAllRequiredStatusChecksContexts(string owner, string name, string branch);
|
||||
|
||||
/// <summary>
|
||||
/// Get the required status checks contexts for the specified branch
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
IObservable<string> GetAllRequiredStatusChecksContexts(long repositoryId, string branch);
|
||||
|
||||
/// <summary>
|
||||
/// Replace the required status checks contexts for the specified branch
|
||||
/// </summary>
|
||||
@@ -472,6 +495,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
[Obsolete("Please use GetAllProtectedBranchTeamRestrictions instead")]
|
||||
IObservable<Team> GetProtectedBranchTeamRestrictions(string owner, string name, string branch);
|
||||
|
||||
/// <summary>
|
||||
@@ -482,8 +506,30 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
[Obsolete("Please use GetAllProtectedBranchTeamRestrictions instead")]
|
||||
IObservable<Team> GetProtectedBranchTeamRestrictions(long repositoryId, string branch);
|
||||
|
||||
/// <summary>
|
||||
/// Get team restrictions for the specified branch (applies only to Organization owned repositories)
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/branches/#list-team-restrictions-of-protected-branch">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
IObservable<Team> GetAllProtectedBranchTeamRestrictions(string owner, string name, string branch);
|
||||
|
||||
/// <summary>
|
||||
/// Get team restrictions for the specified branch (applies only to Organization owned repositories)
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/branches/#list-team-restrictions-of-protected-branch">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
IObservable<Team> GetAllProtectedBranchTeamRestrictions(long repositoryId, string branch);
|
||||
|
||||
/// <summary>
|
||||
/// Replace team restrictions for the specified branch (applies only to Organization owned repositories)
|
||||
/// </summary>
|
||||
@@ -562,6 +608,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
[Obsolete("Please use GetAllProtectedBranchUserRestrictions instead")]
|
||||
IObservable<User> GetProtectedBranchUserRestrictions(string owner, string name, string branch);
|
||||
|
||||
/// <summary>
|
||||
@@ -572,8 +619,30 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
[Obsolete("Please use GetAllProtectedBranchUserRestrictions instead")]
|
||||
IObservable<User> GetProtectedBranchUserRestrictions(long repositoryId, string branch);
|
||||
|
||||
/// <summary>
|
||||
/// Get user restrictions for the specified branch (applies only to Organization owned repositories)
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/branches/#list-user-restrictions-of-protected-branch">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
IObservable<User> GetAllProtectedBranchUserRestrictions(string owner, string name, string branch);
|
||||
|
||||
/// <summary>
|
||||
/// Get user restrictions for the specified branch (applies only to Organization owned repositories)
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/branches/#list-user-restrictions-of-protected-branch">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="branch">The name of the branch</param>
|
||||
IObservable<User> GetAllProtectedBranchUserRestrictions(long repositoryId, string branch);
|
||||
|
||||
/// <summary>
|
||||
/// Replace user restrictions for the specified branch (applies only to Organization owned repositories)
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user