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 boolean
equals(Object o)
String
getCloneUrl()
String
getDefaultBranch()
String
getHtmlUrl()
String
getHttpCloneUrl()
String
getId()
String
getName()
org.eclipse.egit.github.core.User
getOwner()
String
getSshCloneUrl()
int
hashCode()
boolean
isPrivate()
-
-
-
Method Detail
-
getOwner
@NotNull public org.eclipse.egit.github.core.User getOwner()
-
getName
@NotNull public String getName()
- Specified by:
getName
in interfaceExternalRepository
- Returns:
- repository name
-
getId
@NotNull public String getId()
- Specified by:
getId
in interfaceExternalRepository
- Returns:
- repository id as provided by VCS hosting
-
getHttpCloneUrl
@NotNull public String getHttpCloneUrl()
- Specified by:
getHttpCloneUrl
in interfaceExternalRepository
- Returns:
- HTTPS clone URL
-
getSshCloneUrl
@Nullable public String getSshCloneUrl()
- Specified by:
getSshCloneUrl
in interfaceExternalRepository
- Returns:
- SSH clone URL
-
getCloneUrl
@NotNull public String getCloneUrl()
- Specified by:
getCloneUrl
in interfaceExternalRepository
- Returns:
- HTTPS clone URL
-
getHtmlUrl
@Nullable public String getHtmlUrl()
- Specified by:
getHtmlUrl
in interfaceExternalRepository
- Returns:
- Repository web page URL
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivate
in interfaceExternalRepository
- Returns:
- true if it is known that the repository is private, false otherwise
-
getDefaultBranch
@Nullable public String getDefaultBranch()
- Specified by:
getDefaultBranch
in interfaceExternalRepository
-
-