public class StashApiClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StashApiClient.StashApiException
Indicates an error during interaction with the Bitbucket Server
|
| 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) |
@Nonnull public List<StashPullRequestResponseValue> getPullRequests() throws StashApiClient.StashApiException
StashApiClient.StashApiException@Nonnull public List<StashPullRequestComment> getPullRequestComments(String projectCode, String commentRepositoryName, String pullRequestId) throws StashApiClient.StashApiException
StashApiClient.StashApiExceptionpublic void deletePullRequestComment(String pullRequestId, String commentId) throws StashApiClient.StashApiException
StashApiClient.StashApiException@Nullable public StashPullRequestComment postPullRequestComment(String pullRequestId, String comment) throws StashApiClient.StashApiException
StashApiClient.StashApiException@Nullable public StashPullRequestMergeableResponse getPullRequestMergeStatus(String pullRequestId) throws StashApiClient.StashApiException
StashApiClient.StashApiExceptionpublic boolean mergePullRequest(String pullRequestId, String version) throws StashApiClient.StashApiException
StashApiClient.StashApiExceptionpublic void deleteRequest(String path) throws StashApiClient.StashApiException
StashApiClient.StashApiExceptionprotected static StashPullRequestMergeableResponse parsePullRequestMergeStatus(String response) throws IOException
IOExceptionCopyright © 2016–2019. All rights reserved.