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 PullRequestService
public PullRequest acceptPullRequest(PullRequest pullRequest)
acceptPullRequest
in interface PullRequestService
public PullRequest rejectPullRequest(PullRequest pullRequest)
rejectPullRequest
in interface PullRequestService
public PullRequest closePullRequest(PullRequest pullRequest)
closePullRequest
in interface PullRequestService
public List<PullRequest> getPullRequestsByBranch(Integer page, Integer pageSize, String repository, String branch)
getPullRequestsByBranch
in interface PullRequestService
public List<PullRequest> getPullRequestsByRepository(Integer page, Integer pageSize, String repository)
getPullRequestsByRepository
in interface PullRequestService
public List<PullRequest> getPullRequestsByStatus(Integer page, Integer pageSize, String repository, PullRequestStatus status)
getPullRequestsByStatus
in interface PullRequestService
public void deletePullRequest(PullRequest pullRequest)
deletePullRequest
in interface PullRequestService
protected List<PullRequest> paginate(Integer page, Integer pageSize, List<PullRequest> pullRequests)
public List<FileDiff> diff(PullRequest pullRequest)
diff
in interface PullRequestService
protected 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.