mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +00:00
Add Pull Request Review Request API. (#1588)
* Add Pull Request Review Request API. * Add Reactive Pull Request Review Request API. * Add PullRequestReviewRequestClient tests. * Add ObservablePullRequestReviewRequestClient tests. * Fix sub-client property naming. * Remove redundant model and update PullRequest model. * Add repositoryId based methods and missing Observable documentation. * Add missing parameter to PullRequest ctor. * Add integration tests for PullRequestReviewRequest. * Upgrade PullRequestReviewRequest integration tests. * Add integration tests for repositoryId methods and fix url bug. * Add missing unit tests and fix PR issues. * Add pagination support for PullRequestReviewRequst.GetAll and tests for it. * Revert changes on `PullRequestReviewCommentsClientTests.cs` * Small upgrades - remove unused using and compress property to expression body. * Revert use of expression body in property. * Add pagination tests for PullRequestReviewRequest.GetAll. * Change pagination tests to use 2 users. * Correct class/file name * Reword the integration test names for consistency Move the plumbing to create reviews into CreateTheWorld to clean up the actual tests * Fix DebuggerDisplay of requested reviewers * fix reviewRequestToCreate parameter to be consistent
This commit is contained in:
committed by
Ryan Gribble
parent
13593676d5
commit
97ae3cb3de
@@ -26,6 +26,11 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
public IObservablePullRequestReviewCommentsClient ReviewComment { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for managing review requests.
|
||||
/// </summary>
|
||||
public IObservablePullRequestReviewRequestsClient ReviewRequest { get; private set; }
|
||||
|
||||
public ObservablePullRequestsClient(IGitHubClient client)
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, "client");
|
||||
@@ -33,6 +38,7 @@ namespace Octokit.Reactive
|
||||
_client = client.Repository.PullRequest;
|
||||
_connection = client.Connection;
|
||||
ReviewComment = new ObservablePullRequestReviewCommentsClient(client);
|
||||
ReviewRequest = new ObservablePullRequestReviewRequestsClient(client);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user