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 |
---|---|
@NotNull List<VcsPullRequest> |
getOpenPullRequests(@NotNull ImmutableChain chain,
@NotNull 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(@NotNull 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 @NotNull ImmutableChain chain)
PullRequestDetectionService
schedulePullRequestDetectionForChain
in interface PullRequestDetectionService
chain
- to be detected for pull requests@NotNull public @NotNull List<VcsPullRequest> getOpenPullRequests(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull VcsRepositoryData planRepositoryDefinition) throws Exception
PullRequestDetectionService
getOpenPullRequests
in interface PullRequestDetectionService
chain
- to find pull requests for.Exception
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.