Class GitHubRepository
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.github.GitHubRepository
-
- All Implemented Interfaces:
ExternalRepository
public class GitHubRepository extends Object implements ExternalRepository
-
-
Constructor Summary
Constructors Constructor Description GitHubRepository()GitHubRepository(org.eclipse.egit.github.core.Repository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetCloneUrl()StringgetDefaultBranch()StringgetHtmlUrl()StringgetHttpCloneUrl()StringgetId()StringgetName()org.eclipse.egit.github.core.UsergetOwner()StringgetSshCloneUrl()inthashCode()booleanisPrivate()
-
-
-
Method Detail
-
getOwner
@NotNull public org.eclipse.egit.github.core.User getOwner()
-
getName
@NotNull public String getName()
- Specified by:
getNamein interfaceExternalRepository- Returns:
- repository name
-
getId
@NotNull public String getId()
- Specified by:
getIdin interfaceExternalRepository- Returns:
- repository id as provided by VCS hosting
-
getHttpCloneUrl
@NotNull public String getHttpCloneUrl()
- Specified by:
getHttpCloneUrlin interfaceExternalRepository- Returns:
- HTTPS clone URL
-
getSshCloneUrl
@Nullable public String getSshCloneUrl()
- Specified by:
getSshCloneUrlin interfaceExternalRepository- Returns:
- SSH clone URL
-
getCloneUrl
@NotNull public String getCloneUrl()
- Specified by:
getCloneUrlin interfaceExternalRepository- Returns:
- HTTPS clone URL
-
getHtmlUrl
@Nullable public String getHtmlUrl()
- Specified by:
getHtmlUrlin interfaceExternalRepository- Returns:
- Repository web page URL
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivatein interfaceExternalRepository- Returns:
- true if it is known that the repository is private, false otherwise
-
getDefaultBranch
@Nullable public String getDefaultBranch()
- Specified by:
getDefaultBranchin interfaceExternalRepository
-
-