mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 06:05:12 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user