Java Code Examples for org.kohsuke.github.GHRepository#getHtmlUrl()
The following examples show how to use
org.kohsuke.github.GHRepository#getHtmlUrl() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GithubRepository.java From updatebot with Apache License 2.0 | 5 votes |
public GithubRepository(GHRepository repository) { this.repository = repository; URL htmlUrl = repository.getHtmlUrl(); if (htmlUrl != null) { setHtmlUrl(htmlUrl.toString()); } setName(repository.getName()); setCloneUrl(repository.getGitTransportUrl()); }
Example 2
Source File: GitHubRepository.java From github-integration-plugin with MIT License | 5 votes |
/** * Repository may be created without gh connection, but trigger logic expects this fields. * Should be called before trigger logic starts checks. */ public synchronized void actualise(@Nonnull GHRepository ghRepository, @Nonnull TaskListener listener) throws IOException { changed = false; PrintStream logger = listener.getLogger(); // just in case your organisation decided to change domain // take into account only repo/name if (isNull(fullName) || !fullName.equalsIgnoreCase(ghRepository.getFullName())) { logger.printf("Repository full name changed from '%s' to '%s'.%n", fullName, ghRepository.getFullName()); fullName = ghRepository.getFullName(); changed = true; } if (isNull(githubUrl) || !githubUrl.toExternalForm().equalsIgnoreCase(ghRepository.getHtmlUrl().toExternalForm())) { logger.printf("Changing GitHub url from '%s' to '%s'.%n", githubUrl, ghRepository.getHtmlUrl()); githubUrl = ghRepository.getHtmlUrl(); } if (isNull(gitUrl) || !gitUrl.equalsIgnoreCase(ghRepository.getGitTransportUrl())) { logger.printf("Changing Git url from '%s' to '%s'.%n", gitUrl, ghRepository.getGitTransportUrl()); gitUrl = ghRepository.getGitTransportUrl(); } if (isNull(sshUrl) || !sshUrl.equalsIgnoreCase(ghRepository.getSshUrl())) { logger.printf("Changing SSH url from '%s' to '%s'.%n", sshUrl, ghRepository.getSshUrl()); sshUrl = ghRepository.getSshUrl(); } actualiseOnChange(ghRepository, listener); }
Example 3
Source File: TreeCache.java From github-integration-plugin with MIT License | 4 votes |
private String key(GHRepository repo, String revision) { return repo.getHtmlUrl() + "#" + revision; }