Package org.eclipse.egit.github.core

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


        return tag;
    }

    @Override
    public Repository getRepository(final String owner, final String name) throws IOException {
        Repository repository = new Repository();
        repository.setName(name);
        return repository;
    }
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);

            JsfUtil.addSuccessMessage("Repositorio salvo com sucesso.");
        } catch (Exception e) {
View Full Code Here

                public void run() {

                    out.printLog("########### PROCESSO DE MINERAÇÃO INICIADO! ##############\n");

                    try {
                        Repository gitRepo = RepositoryServices.getGitRepository(repositoryToMiner.getOwner().getLogin(), repositoryToMiner.getName());
                        progress = 10;
                        if (!canceled && (minerOpenIssues || minerClosedIssues)) {
                            subProgress = 0;
                            out.setCurrentProcess("Minerando issues...\n");
                            List<Issue> gitIssues = IssueServices.getGitIssuesFromRepository(gitRepo, minerOpenIssues, minerClosedIssues, out);
View Full Code Here

    private void minerForks(List<Repository> gitForks) {
        EntityRepository repository = dao.findByID(repositoryToMinerId, EntityRepository.class);
        int i = 0;
        calculeSubProgress(i, gitForks.size());
        while (!canceled && i < gitForks.size()) {
            Repository gitFork = gitForks.get(i);
            EntityRepository fork = minerFork(gitFork);
            repository.addFork(fork);
            dao.edit(fork);
            i++;
            calculeSubProgress(i, gitForks.size());
View Full Code Here

TOP

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

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.