Esempio n. 1
0
        public async Task <bool> PullRequestExists(ForkData target, string headBranch, string baseBranch)
        {
            if (target == null)
            {
                throw new ArgumentNullException(nameof(target));
            }

            var result = await _client.GetPullRequests(target.Owner, target.Name, headBranch, baseBranch);

            return(result.Any());
        }
Esempio n. 2
0
        public async Task <bool> PullRequestExists(ForkData target, string headBranch, string baseBranch)
        {
            var result = await _client.GetPullRequests(target.Owner, target.Name, headBranch, baseBranch);

            return(result.Any());
        }