예제 #1
0
        public async Task <bool> ApprovePullRequest(
            string baseUrl,
            string projectName,
            string repositoryName,
            string personalAccessToken,
            string password,
            string userName,
            long pullRequestId)
        {
            var client = new BitbucketClient(
                baseUrl,
                userName,
                password ?? personalAccessToken);
            var rez1 = await client.ApprovePullRequestAsync(projectName,
                                                            repositoryName,
                                                            pullRequestId);

            return(rez1.Approved);
        }