public GHRepository createFork(GHRepository repo) throws IOException { try { return repo.fork(); } catch (IOException e) { log.error("Could not fork {}", repo.getFullName(), e); } return null; }
public GHRepository createFork(GHRepository repo) throws IOException { try { return repo.fork(); } catch (IOException e) { log.error("Could not fork {}", repo.getFullName(), e); } return null; }
public String forkRepository(String repository, AbstractStep step) throws IOException { GitHub gh = RepairnatorConfig.getInstance().getGithub(); showGitHubRateInformation(gh, step); if (gh.getRateLimit().remaining > 10) { GHRepository originalRepo = gh.getRepository(repository); if (originalRepo != null) { return originalRepo.fork().getUrl().toString(); } } return null; }
GHRepository ghForkedRepo = originalRepository.fork();