本文整理匯總了Java中org.kohsuke.github.GHRepository.getFullName方法的典型用法代碼示例。如果您正苦於以下問題:Java GHRepository.getFullName方法的具體用法?Java GHRepository.getFullName怎麽用?Java GHRepository.getFullName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.kohsuke.github.GHRepository
的用法示例。
在下文中一共展示了GHRepository.getFullName方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: GitRepositoryDTO
import org.kohsuke.github.GHRepository; //導入方法依賴的package包/類
public GitRepositoryDTO(String key, GHRepository repository) {
this.id = key;
this.name = repository.getName();
if (Strings.isNullOrBlank(name)) {
name = repository.getFullName();
}
if (Strings.isNullOrBlank(name)) {
name = key;
}
description = repository.getDescription();
if (Strings.isNullOrBlank(description) || key.equals(description)) {
try {
description = createdAtText(repository.getCreatedAt());
} catch (IOException e) {
// ignore
}
}
if (Strings.isNullOrBlank(description)) {
description = repository.getHomepage();
}
}
示例2: actualise
import org.kohsuke.github.GHRepository; //導入方法依賴的package包/類
/**
* Repository may be created without gh connection, but trigger logic expects this fields.
* Should be called before trigger logic starts checks.
*/
public void actualise(@Nonnull GHRepository ghRepository) {
if (isNull(fullName)) {
fullName = ghRepository.getFullName();
}
if (isNull(githubUrl)) {
githubUrl = ghRepository.getHtmlUrl();
}
if (isNull(gitUrl)) {
gitUrl = ghRepository.getGitTransportUrl();
}
if (isNull(sshUrl)) {
sshUrl = ghRepository.getSshUrl();
}
}
示例3: matchRepo
import org.kohsuke.github.GHRepository; //導入方法依賴的package包/類
private boolean matchRepo(GhprcRepository ghprcRepo, GHRepository ghRepo) {
String jobRepoName = ghprcRepo.getName();
String hookRepoName = ghRepo.getFullName();
logger.log(Level.INFO, "Comparing repository names: {0} to {1}, case is ignored", new Object[]{jobRepoName, hookRepoName});
return jobRepoName.equalsIgnoreCase(hookRepoName);
}