public class PullRequestDetectionServiceImpl extends Object implements PullRequestDetectionService
Constructor and Description |
---|
PullRequestDetectionServiceImpl(CachedPlanManager cachedPlanManager,
CustomVariableContext customVariableContext,
ErrorHandler errorHandler,
org.springframework.orm.hibernate5.HibernateTemplate hibernateTemplate,
RepositoryCachingFacade repositoryCachingFacade,
ScopedExclusionService scopedExclusionService,
VcsPullRequestService vcsPullRequestService,
VcsRepositoryManager vcsRepositoryManager) |
Modifier and Type | Method and Description |
---|---|
List<VcsPullRequest> |
getOpenPullRequests(ImmutableChain chain,
VcsRepositoryData planRepositoryDefinition)
Returns a list of currently open pull requests for the chain's default repository
List ordering determined by underlying repository (preference is for native ordering e.g.
|
boolean |
schedulePullRequestDetectionForChain(ImmutableChain chain)
Registers PR detection request for a given Chain.
|
void |
startPullRequestDetection() |
@Inject public PullRequestDetectionServiceImpl(CachedPlanManager cachedPlanManager, CustomVariableContext customVariableContext, ErrorHandler errorHandler, org.springframework.orm.hibernate5.HibernateTemplate hibernateTemplate, RepositoryCachingFacade repositoryCachingFacade, ScopedExclusionService scopedExclusionService, VcsPullRequestService vcsPullRequestService, VcsRepositoryManager vcsRepositoryManager)
@PostConstruct public void startPullRequestDetection()
public boolean schedulePullRequestDetectionForChain(@NotNull ImmutableChain chain)
PullRequestDetectionService
schedulePullRequestDetectionForChain
in interface PullRequestDetectionService
chain
- to be detected for pull requests@NotNull public List<VcsPullRequest> getOpenPullRequests(@NotNull ImmutableChain chain, @NotNull VcsRepositoryData planRepositoryDefinition) throws Exception
PullRequestDetectionService
getOpenPullRequests
in interface PullRequestDetectionService
chain
- to find pull requests for.Exception
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.