public Task <PullRequestReview> Dismiss(long repositoryId, int number, long reviewId, PullRequestReviewDismiss dismissMessage) { Ensure.ArgumentNotNull(dismissMessage, nameof(dismissMessage)); var endpoint = ApiUrls.PullRequestReviewDismissal(repositoryId, number, reviewId); return(ApiConnection.Put <PullRequestReview>(endpoint, dismissMessage)); }
public Task <PullRequestReview> Dismiss(string owner, string name, int number, long reviewId, PullRequestReviewDismiss dismissMessage) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Ensure.ArgumentNotNull(dismissMessage, nameof(dismissMessage)); var endpoint = ApiUrls.PullRequestReviewDismissal(owner, name, number, reviewId); return(ApiConnection.Put <PullRequestReview>(endpoint, dismissMessage)); }