Package org.eclipse.egit.github.core.service

Examples of org.eclipse.egit.github.core.service.PullRequestService


        Object service = registry.lookupByName("githubPullRequestService");
        if (service != null) {
            LOG.debug("Using PullRequestService found in registry " + service.getClass().getCanonicalName());
            pullRequestService = (PullRequestService) service;
        } else {
            pullRequestService = new PullRequestService();
        }
        initService(pullRequestService);

        service = registry.lookupByName("githbIssueService");
        if (service != null) {
View Full Code Here


        Object service = registry.lookupByName("githubPullRequestService");
        if (service != null) {
            LOG.debug("Using PullRequestService found in registry " + service.getClass().getCanonicalName());
            pullRequestService = (PullRequestService) service;
        } else {
            pullRequestService = new PullRequestService();
        }

        initService(pullRequestService);

        LOG.info("GitHub PullRequestConsumer: Indexing current pull requests...");
View Full Code Here

        Registry registry = endpoint.getCamelContext().getRegistry();
        Object service = registry.lookupByName("githubPullRequestService");
        if (service != null) {
            pullRequestService = (PullRequestService) service;
        } else {
            pullRequestService = new PullRequestService();
        }
        initService(pullRequestService);
    }
View Full Code Here

        Object service = registry.lookupByName("githubPullRequestService");
        if (service != null) {
            LOG.debug("Using PullRequestService found in registry " + service.getClass().getCanonicalName());
            pullRequestService = (PullRequestService) service;
        } else {
            pullRequestService = new PullRequestService();
        }
        initService(pullRequestService);

        service = registry.lookupByName("githbIssueService");
        if (service != null) {
View Full Code Here

    }

    public static List<PullRequest> getGitPullRequestsFromRepository(Repository gitRepo, boolean open, boolean closed, OutLog out) {
        List<PullRequest> pulls = new ArrayList<PullRequest>();
        try {
            PullRequestService pullServ = new PullRequestService(AuthServices.getGitHubClient());
            if (open) {
                List<PullRequest> opensPulls;
                out.printLog("Baixando PullRequests Abertos...\n");
                opensPulls = pullServ.getPullRequests(gitRepo, "open");
                out.printLog(opensPulls.size() + " PullRequests abertos baixados!");
                pulls.addAll(opensPulls);
            }
            if (closed) {
                List<PullRequest> closedsPulls;
                out.printLog("Baixando PullRequests Fechados...\n");
                closedsPulls = pullServ.getPullRequests(gitRepo, "closed");
                out.printLog(closedsPulls.size() + " PullRequests fechados baixados!");
                pulls.addAll(closedsPulls);
            }
            out.printLog(pulls.size() + " PullRequests baixados no total!");
        } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of org.eclipse.egit.github.core.service.PullRequestService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.