public Task <PullRequestReview> Submit(long repositoryId, int number, long reviewId, PullRequestReviewSubmit submitMessage) { Ensure.ArgumentNotNull(submitMessage, nameof(submitMessage)); var endpoint = ApiUrls.PullRequestReviewSubmit(repositoryId, number, reviewId); return(ApiConnection.Post <PullRequestReview>(endpoint, submitMessage, null, null)); }
public Task <PullRequestReview> Submit(string owner, string name, int number, long reviewId, PullRequestReviewSubmit submitMessage) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Ensure.ArgumentNotNull(submitMessage, nameof(submitMessage)); var endpoint = ApiUrls.PullRequestReviewSubmit(owner, name, number, reviewId); return(ApiConnection.Post <PullRequestReview>(endpoint, submitMessage, null, null)); }