Package org.eclipse.egit.github.core

Examples of org.eclipse.egit.github.core.Issue


  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


    this.repo = config.getString(SettingKeys.GITHUB_REPOSITORY).toLowerCase();
    this.username = config.getString(SettingKeys.GITHUB_USERNAME);
  }

  private Issue createNewIssue() {
    Issue issue = new Issue();
    issue.setBody(getBodyHtml());
    issue.setTitle(report.getSubject());
    issue.setLabels(getLabels());
    return issue;
  }
View Full Code Here

    private void minerIssues(List<Issue> gitIssues, Repository gitRepo) throws Exception {
        EntityRepository repository = dao.findByID(repositoryToMinerId, EntityRepository.class);
        int i = 0;
        calculeSubProgress(i, gitIssues.size());
        while (!canceled && i < gitIssues.size()) {
            Issue gitIssue = gitIssues.get(i);
            EntityIssue issue = minerIssue(gitIssue, repository);
            if (minerEventsOfIssues) {
                minerEventsIssue(issue, gitRepo);
            }
            if (minerCommentsOfIssues && issue.getCommentsCount() > issue.getComments().size()) {
                minerCommentsOfIssue(issue, gitRepo);
            }
            EntityPullRequest pull = PullRequestServices.getPullRequestByNumber(gitIssue.getNumber(), repository, dao);
            if (pull != null) {
                pull.setIssue(issue);
                issue.setPullRequest(pull);
                dao.edit(pull);
            }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.github.core.Issue

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.