public class PullRequestServiceImpl extends Object implements PullRequestService
| Constructor and Description |
|---|
PullRequestServiceImpl(GitMetadataStore metadataStore,
IOService ioService,
RepositoryService repositoryService,
SpacesAPI spaces) |
@Inject public PullRequestServiceImpl(GitMetadataStore metadataStore, @Named(value="ioStrategy") IOService ioService, RepositoryService repositoryService, SpacesAPI spaces)
public PullRequest createPullRequest(String sourceSpace, String sourceRepository, String sourceBranch, String targetSpace, String targetRepository, String targetBranch)
createPullRequest in interface PullRequestServicepublic PullRequest acceptPullRequest(PullRequest pullRequest)
acceptPullRequest in interface PullRequestServicepublic PullRequest rejectPullRequest(PullRequest pullRequest)
rejectPullRequest in interface PullRequestServicepublic PullRequest closePullRequest(PullRequest pullRequest)
closePullRequest in interface PullRequestServicepublic List<PullRequest> getPullRequestsByBranch(Integer page, Integer pageSize, String repository, String branch)
getPullRequestsByBranch in interface PullRequestServicepublic List<PullRequest> getPullRequestsByRepository(Integer page, Integer pageSize, String repository)
getPullRequestsByRepository in interface PullRequestServicepublic List<PullRequest> getPullRequestsByStatus(Integer page, Integer pageSize, String repository, PullRequestStatus status)
getPullRequestsByStatus in interface PullRequestServicepublic void deletePullRequest(PullRequest pullRequest)
deletePullRequest in interface PullRequestServiceprotected List<PullRequest> paginate(Integer page, Integer pageSize, List<PullRequest> pullRequests)
public List<FileDiff> diff(PullRequest pullRequest)
diff in interface PullRequestServiceprotected void changePullRequestStatus(String repository, long id, PullRequestStatus status)
protected void createHiddenBranch(PullRequest pullRequest)
protected Path buildHiddenPath(PullRequest pullRequest)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.