public class StashApiClient extends Object
| Constructor and Description |
|---|
StashApiClient(String stashHost,
String username,
String password,
String project,
String repositoryName,
boolean ignoreSsl) |
| Modifier and Type | Method and Description |
|---|---|
void |
deletePullRequestComment(String pullRequestId,
String commentId) |
void |
deleteRequest(String path) |
List<StashPullRequestComment> |
getPullRequestComments(String projectCode,
String commentRepositoryName,
String pullRequestId) |
StashPullRequestMergeableResponse |
getPullRequestMergeStatus(String pullRequestId) |
List<StashPullRequestResponseValue> |
getPullRequests() |
boolean |
mergePullRequest(String pullRequestId,
String version) |
protected static StashPullRequestMergeableResponse |
parsePullRequestMergeStatus(String response) |
StashPullRequestComment |
postPullRequestComment(String pullRequestId,
String comment) |
public List<StashPullRequestResponseValue> getPullRequests()
public List<StashPullRequestComment> getPullRequestComments(String projectCode, String commentRepositoryName, String pullRequestId)
public void deletePullRequestComment(String pullRequestId, String commentId)
@Nullable public StashPullRequestComment postPullRequestComment(String pullRequestId, String comment)
@Nullable public StashPullRequestMergeableResponse getPullRequestMergeStatus(String pullRequestId)
public void deleteRequest(String path)
protected static StashPullRequestMergeableResponse parsePullRequestMergeStatus(String response) throws IOException
IOExceptionCopyright © 2016–2019. All rights reserved.