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

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


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

        initService(repositoryService);
        repository = repositoryService.getRepository(endpoint.getRepoOwner(), endpoint.getRepoName());
    }
View Full Code Here


        Registry registry = endpoint.getCamelContext().getRegistry();
        Object service = registry.lookupByName("githubRepositoryService");
        if (service != null) {
            repositoryService = (RepositoryService) service;
        } else {
            repositoryService = new RepositoryService();
        }
        initService(repositoryService);
        repository = repositoryService.getRepository(endpoint.getRepoOwner(), endpoint.getRepoName());
    }
View Full Code Here

        // Display repo info
        GitHubClientOAuthServer client =
          new GitHubClientOAuthServer(System.getenv(GITHUB_CLIENT_ID), System.getenv(GITHUB_CLIENT_SECRET) );
        map.put("repo", null);
        map.put("githubcontents", null);
        RepositoryService service = new RepositoryService(client);
        map.put("repo", service.getRepository(repoId));
       
        // Prepare Salesforce metadata metadata for repository scan
        RepositoryScanResult repositoryScanResult = new RepositoryScanResult();
        RepositoryItem repositoryContainer = new RepositoryItem();
        repositoryContainer.repositoryItems = new ArrayList<RepositoryItem>();
View Full Code Here

   
  }
  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

            if (this.repositoryName == null || this.repositoryName.isEmpty()
                    || this.repositoryOwnerLogin == null || this.repositoryOwnerLogin.isEmpty()) {
                throw new RuntimeException("Informe o nome e login do repositorio desejado, ou a URL para a página do GitHub.");
            }

            Repository gitRepository = new RepositoryService(AuthServices.getGitHubClient()).getRepository(this.repositoryOwnerLogin, this.repositoryName);

            System.err.println("Repositório: " + gitRepository.getName() + " | " + gitRepository.getOwner().getLogin() + " | " + gitRepository.getCreatedAt() + " | " + gitRepository.getHtmlUrl());

            repository = RepositoryServices.createEntity(gitRepository, dao, true);
View Full Code Here

        return repo;
    }

    public static Repository getGitRepository(String ownerLogin, String repoName) throws Exception {
        return new RepositoryService(AuthServices.getGitHubClient()).getRepository(ownerLogin, repoName);
    }
View Full Code Here

        return new RepositoryService(AuthServices.getGitHubClient()).getRepository(ownerLogin, repoName);
    }

    public static List<Repository> getGitForksFromRepository(Repository gitRepo, OutLog out) throws Exception {
        out.printLog("Baixando Forks...\n");
        List<Repository> forks = new RepositoryService(AuthServices.getGitHubClient()).getForks(gitRepo);
        out.printLog(forks.size() + " Forks baixados!");
        return forks;
    }
View Full Code Here

  }

  public String[] getRepositories(String pAccessToken) {
    GitHubClient client = new GitHubClient();
    client.setOAuth2Token(pAccessToken);
    RepositoryService service = new RepositoryService(client);
    try {
      List<Repository> repositories = service.getRepositories();
      String[] result = new String[repositories.size()];
      for (int i = 0; i < repositories.size(); i++) {
        result[i] = repositories.get(i).getName();
      }
      return result;
View Full Code Here

TOP

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

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.