public interface PullRequestService
| Modifier and Type | Method and Description |
|---|---|
PullRequest |
acceptPullRequest(PullRequest pullRequest)
Accepts the provided pull request and merges branches into target.
|
PullRequest |
closePullRequest(PullRequest pullRequest)
Closes the provided pull request and changes its status to CLOSED
|
PullRequest |
createPullRequest(String sourceSpace,
String sourceRepository,
String sourceBranch,
String targetSpace,
String targetRepository,
String targetBranch)
Creates a pull request and stores it into the tracking system.
|
void |
deletePullRequest(PullRequest pullRequest)
Deletes the pull request.
|
List<FileDiff> |
diff(PullRequest pullRequest)
Obtains differences between all files involved in the pull request.
|
List<PullRequest> |
getPullRequestsByBranch(Integer page,
Integer pageSize,
String repository,
String branch)
Retrieves pull requests filtered by repository and branch
|
List<PullRequest> |
getPullRequestsByRepository(Integer page,
Integer pageSize,
String repository)
Retrieves pull requests filtered by repository
|
List<PullRequest> |
getPullRequestsByStatus(Integer page,
Integer pageSize,
String repository,
PullRequestStatus status)
Retrieves pull requests filtered by repository and branch
|
PullRequest |
rejectPullRequest(PullRequest pullRequest)
Rejects the provided pull request and changes its status to REJECTED
|
PullRequest createPullRequest(String sourceSpace, String sourceRepository, String sourceBranch, String targetSpace, String targetRepository, String targetBranch)
sourceSpace - the space containing the origin repositorysourceRepository - the origin repositorysourceBranch - the branch on the origin repository you want to get pulledtargetSpace - the space containing the upstream repositorytargetRepository - the upstream repositorytargetBranch - the branch where you want impact your changesPullRequest acceptPullRequest(PullRequest pullRequest)
pullRequest - the pull request you want to acceptPullRequest rejectPullRequest(PullRequest pullRequest)
pullRequest - the pull request you want to reject.PullRequest closePullRequest(PullRequest pullRequest)
pullRequest - the pull request you want to close.void deletePullRequest(PullRequest pullRequest)
pullRequest - the pull request you want to delete.List<PullRequest> getPullRequestsByBranch(Integer page, Integer pageSize, String repository, String branch)
page - the page you want to getpageSize - the number of pull requests per pagerepository - the repository used as filterbranch - the branch used as filterList<PullRequest> getPullRequestsByRepository(Integer page, Integer pageSize, String repository)
page - the page you want to getpageSize - the number of pull requests per pagerepository - the repository used as filterList<PullRequest> getPullRequestsByStatus(Integer page, Integer pageSize, String repository, PullRequestStatus status)
page - the page you want to getpageSize - the number of pull requests per pagerepository - the repository used as filterstatus - the status used as filterList<FileDiff> diff(PullRequest pullRequest)
pullRequest - the pull request to diff.Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.