Add ability to pass ApiOptions to PullRequestsClient.Files (#2553)

* Add ability to pass ApiOptions to PullRequestsClient.Files

* Change Reactive PullRequestClient + Fix Test Mocking
This commit is contained in:
Gamer025
2022-08-28 16:12:27 +02:00
committed by GitHub
parent 3d53362bd7
commit 498c2aa0a5
6 changed files with 101 additions and 11 deletions

View File

@@ -231,6 +231,16 @@ namespace Octokit.Reactive
/// <param name="number">The pull request number</param>
IObservable<PullRequestCommit> Commits(long repositoryId, int number);
/// <summary>
/// Get the list of files on a pull request.
/// </summary>
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="number">The pull request number</param>
/// <param name="options">Options for changing the API response</param>
IObservable<PullRequestFile> Files(string owner, string name, int number, ApiOptions options);
/// <summary>
/// Get the list of files on a pull request.
/// </summary>
@@ -240,6 +250,15 @@ namespace Octokit.Reactive
/// <param name="number">The pull request number</param>
IObservable<PullRequestFile> Files(string owner, string name, int number);
/// <summary>
/// Get the list of files on a pull request.
/// </summary>
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
/// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param>
/// <param name="options">Options for changing the API response</param>
IObservable<PullRequestFile> Files(long repositoryId, int number, ApiOptions options);
/// <summary>
/// Get the list of files on a pull request.
/// </summary>