mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +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:
@@ -228,6 +228,16 @@ namespace Octokit
|
||||
/// <param name="number">The pull request number</param>
|
||||
Task<IReadOnlyList<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>
|
||||
Task<IReadOnlyList<PullRequestFile>> Files(string owner, string name, int number, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Get the list of files on a pull request.
|
||||
/// </summary>
|
||||
@@ -237,6 +247,15 @@ namespace Octokit
|
||||
/// <param name="number">The pull request number</param>
|
||||
Task<IReadOnlyList<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>
|
||||
Task<IReadOnlyList<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