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, vcsLocationConfigurator -
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 StringReturns the plugin key for the repository.protected StringReturns the repository selector.Methods inherited from class com.atlassian.bamboo.plugins.git.api.RepositoryFinder
findMatchingRepositories, findRepositories, isRepositoryMatchingEvent
-
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
-
getRepositorySelector
Description copied from class:RepositoryFinderReturns the repository selector. This method must be implemented by subclasses.- Specified by:
getRepositorySelectorin classRepositoryFinder- Returns:
- the repository selector
-
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
-