Examples of IssueService


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

   * @param args
   *            the arguments
   */
  public static void main(String[] args) {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    IssueService service = factory.createIssueService();
    List<Issue> issues = service.searchIssues("facebook", "tornado", Issue.State.OPEN, "type");
    for (Issue issue : issues) {
      printResult(issue);
    }
    Issue issue = service.getIssue("facebook", "tornado", 1);
    printResult(issue);
  }
View Full Code Here

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

        service = registry.lookupByName("githbIssueService");
        if (service != null) {
            issueService = (IssueService) service;
        } else {
            issueService = new IssueService();
        }
        initService(issueService);

        LOG.info("GitHub PullRequestCommentConsumer: Indexing current pull request comments...");
        List<PullRequest> pullRequests = pullRequestService.getPullRequests(getRepository(), "open");
View Full Code Here

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

        service = registry.lookupByName("githbIssueService");
        if (service != null) {
            issueService = (IssueService) service;
        } else {
            issueService = new IssueService();
        }
        initService(issueService);
    }
View Full Code Here

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

    this.report = report;
    getInfoFromConfig();
   
  }
  private String report() throws IOException {
    IssueService issueService = new IssueService();
    issueService.getClient().setOAuth2Token(oathToken);
    RepositoryService repoService = new RepositoryService();
    repoService.getClient().setOAuth2Token(oathToken);
    Issue createdIssue = issueService.createIssue(repoService.getRepository(username, repo), createNewIssue());
    return createdIssue.getHtmlUrl();
  }
View Full Code Here

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

    public List<Issue> getIssueList()
        throws IOException
    {
        List<Issue> issueList = new ArrayList<Issue>();

        IssueService service = new IssueService( client );
        Map<String, String> issueFilter = new HashMap<String, String>();

        if ( includeOpenIssues )
        {
            // Adding open issues

            for ( org.eclipse.egit.github.core.Issue issue : service.getIssues( githubOwner, githubRepo, issueFilter ) )
            {
                if ( !onlyMilestoneIssues || issue.getMilestone() != null )
                {
                    issueList.add( createIssue( issue ) );
                }
            }
        }

        // Adding closed issues

        issueFilter.put( "state", "closed" );

        for ( org.eclipse.egit.github.core.Issue issue : service.getIssues( githubOwner, githubRepo, issueFilter ) )
        {
            if ( !onlyMilestoneIssues || issue.getMilestone() != null )
            {
                issueList.add( createIssue( issue ) );
            }
View Full Code Here

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

    }

    public static List<Issue> getGitIssuesFromRepository(Repository gitRepo, boolean open, boolean closed, OutLog out) {
        List<Issue> issues = new ArrayList<Issue>();
        try {
            IssueService issueServ = new IssueService(AuthServices.getGitHubClient());
            HashMap<String, String> params = new HashMap<String, String>();
            if (open) {
                List<Issue> opensIssues;
                out.printLog("Baixando Issues Abertas...\n");
                params.put("state", "open");
                opensIssues = issueServ.getIssues(gitRepo, params);
                out.printLog(opensIssues.size() + " Issues abertas baixadas!");
                issues.addAll(opensIssues);
            }
            if (closed) {
                List<Issue> clodesIssues;
                params = new HashMap<String, String>();
                out.printLog("Baixando Issues Fechadas...\n");
                params.put("state", "closed");
                clodesIssues = issueServ.getIssues(gitRepo, params);
                out.printLog(clodesIssues.size() + " Issues fechadas baixadas!");
                issues.addAll(clodesIssues);
            }
            out.printLog(issues.size() + " Issues baixadas no total!");
        } catch (Exception ex) {
View Full Code Here

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

        return comment;
    }

    public static List<Comment> getGitCommentsByIssue(Repository gitRepo, Integer issueNumber) throws Exception {
        try {
            return new IssueService(AuthServices.getGitHubClient()).getComments(gitRepo, issueNumber);
        } catch (Exception ex) {
            ex.printStackTrace();
            return getGitCommentsByIssue(gitRepo, issueNumber);
        }
    }
View Full Code Here

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

  public String[] getIssues(String pAccessToken, String owner,
      String pRepository) {
    GitHubClient client = new GitHubClient();
    client.setOAuth2Token(pAccessToken);
    IssueService issueService = new IssueService(client);
    try {
      List<Issue> issues = issueService.getIssues("wimjongman",
          pRepository, null);
      String[] result = new String[issues.size()];
      for (int i = 0; i < issues.size(); i++) {
        result[i] = issues.get(i).getNumber() + "::"
            + issues.get(i).getTitle();
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.