コード例 #1
0
        protected void Init()
        {
            // There is right now one open pull request on that repository.
            // Since it's a mirror it won't be accepted, but let's hope that nobody will come to decline it.
            // Otherwise we will have to perform our tests on another repository (a private one that we can master).
            ExistingRepository = SampleRepositories.MercurialRepository.PullRequestsResource();

            NotExistingRepository = SampleRepositories.NotExistingRepository.PullRequestsResource();
        }
コード例 #2
0
        protected void Init()
        {
            ExistingRepository = SampleRepositories.TestRepository.RepositoryResource.PullRequestsResource();

            // Getting those sample PRs ensure that there is at least 2 PRs with a known status on the test repo.
            // and a minimal set of pull request activities.
            OpenedPullRequestId   = SampleOpenedPullRequest.Get.PullRequest.id.Value;
            DeclinedPullRequestId = SampleDeclinedPullRequest.Get.PullRequest.id.Value;

            NotExistingRepository = SampleRepositories.NotExistingRepository.PullRequestsResource();
        }
コード例 #3
0
        internal BaseBitBucketIssueNumberMessageHandler(SharpBucketV2 bitBucketClient)
        {
            var client = bitBucketClient;

            client.OAuth2ClientCredentials(ConsumerKey, ConsumerSecretKey);

            var repositoriesEndPoint = client.RepositoriesEndPoint();
            var repositoryResource   = repositoriesEndPoint.RepositoryResource(RepositoryOwner, RepositoryName);

            _pullRequestsResource = repositoryResource.PullRequestsResource();
            _issuesResource       = repositoryResource.IssuesResource();
        }