Class GithubRepositoryFinder
java.lang.Object
com.atlassian.bamboo.plugins.git.api.RepositoryFinder
com.atlassian.bamboo.plugins.github.webhooks.GithubRepositoryFinder
-
Field Summary
Fields inherited from class com.atlassian.bamboo.plugins.git.api.RepositoryFinder
BAMBOO_REMOTE_TRIGGER_KEY, vcsRepositoryManager -
Constructor Summary
ConstructorsConstructorDescriptionGithubRepositoryFinder(CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, VcsRepositoryManager vcsRepositoryManager) -
Method Summary
Modifier and TypeMethodDescription@NotNull Stream<VcsRepositoryData> findMatchingRepositories(@NotNull GithubEvent event) Finds and returns a Stream of VcsRepositoryData objects that match the specified AbstractGithubEvent.protected VcsLocationIndexKeygetIndexKeyFromSlug(@NotNull String repositorySlug) Returns the indexing key based on repositorySlug.protected StringReturns the plugin key for the repository.Methods inherited from class com.atlassian.bamboo.plugins.git.api.RepositoryFinder
findMatchingRepositories, findRepositories, getIndexKey, repoMatchesBranch
-
Constructor Details
-
GithubRepositoryFinder
@Inject public GithubRepositoryFinder(CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, VcsRepositoryManager vcsRepositoryManager)
-
-
Method Details
-
getPluginKey
Description copied from class:RepositoryFinderReturns the plugin key for the repository. This method must be implemented by subclasses.- Specified by:
getPluginKeyin classRepositoryFinder- Returns:
- the plugin key for the repository
-
getIndexKeyFromSlug
Description copied from class:RepositoryFinderReturns the indexing key based on repositorySlug.- Specified by:
getIndexKeyFromSlugin classRepositoryFinder
-
findMatchingRepositories
@NotNull public @NotNull Stream<VcsRepositoryData> findMatchingRepositories(@NotNull @NotNull GithubEvent event) Finds and returns a Stream of VcsRepositoryData objects that match the specified AbstractGithubEvent.- Parameters:
event- the AbstractGithubEvent to match- Returns:
- a Stream of matching VcsRepositoryData objects
-