예제 #1
0
        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));
        }
예제 #2
0
        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));
        }