示例#1
0
        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));
        }
示例#2
0
        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));
        }