Class GitHubRepo
- java.lang.Object
-
- com.github.kostyasha.github.integration.multibranch.action.GitHubRepo
-
- All Implemented Interfaces:
Action
,ModelObject
public class GitHubRepo extends Object implements Action
Action as storage of critical (and not) information required for triggering decision. LikeGitHubPRRepository
andGitHubBranchRepository
, but will contain anything related to repo in this single class.
-
-
Constructor Summary
Constructors Constructor Description GitHubRepo(GitHubBranchRepository branchRepository, GitHubTagRepository tagRepository, GitHubPRRepository prRepository)
GitHubRepo(GitHubSCMSourcesLocalStorage owner)
GitHubRepo(String repoFullName, URL url)
For offline initialisation from what user specified.GitHubRepo(org.kohsuke.github.GHRepository repository)
When remote side available.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actualize(org.kohsuke.github.GHRepository remoteRepo)
GitHubBranchRepository
getBranchRepository()
String
getDisplayName()
String
getIconFileName()
GitHubPRRepository
getPrRepository()
GitHubTagRepository
getTagRepository()
String
getUrlName()
void
setOwner(GitHubSCMSourcesLocalStorage owner)
void
sync(org.kohsuke.github.GHRepository remoteRepo)
-
-
-
Constructor Detail
-
GitHubRepo
public GitHubRepo(GitHubSCMSourcesLocalStorage owner)
-
GitHubRepo
public GitHubRepo(org.kohsuke.github.GHRepository repository) throws IOException
When remote side available.- Throws:
IOException
-
GitHubRepo
public GitHubRepo(String repoFullName, URL url)
For offline initialisation from what user specified.
-
GitHubRepo
public GitHubRepo(GitHubBranchRepository branchRepository, GitHubTagRepository tagRepository, GitHubPRRepository prRepository)
-
-
Method Detail
-
getBranchRepository
public GitHubBranchRepository getBranchRepository()
-
getTagRepository
public GitHubTagRepository getTagRepository()
-
getPrRepository
public GitHubPRRepository getPrRepository()
-
getIconFileName
@CheckForNull public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
@CheckForNull public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
@CheckForNull public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
actualize
public void actualize(org.kohsuke.github.GHRepository remoteRepo) throws IOException
- Throws:
IOException
-
sync
public void sync(org.kohsuke.github.GHRepository remoteRepo)
-
setOwner
public void setOwner(GitHubSCMSourcesLocalStorage owner)
-
-