Examples of PullRequestService


Examples of com.github.api.v2.services.PullRequestService

   * @param args
   *            the arguments
   */
  public static void main(String[] args) {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    PullRequestService service = factory.createPullRequestService();
    List<PullRequest> pullRequests = service.getPullRequests("technoweenie", "faraday");
    for (PullRequest pullRequest : pullRequests) {
      printResult(pullRequest);         
    }
    PullRequest pullRequest = service.getPullRequest("technoweenie", "faraday", 15);
    printResult(pullRequest);
  }
View Full Code Here

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

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);

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

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

        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

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

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

    }

    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
Copyright © 2018 www.massapi.com. 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.