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) |
List<StashPullRequestComment> |
getPullRequestComments(String projectCode,
String commentRepositoryName,
String pullRequestId) |
StashPullRequestMergeableResponse |
getPullRequestMergeStatus(String pullRequestId) |
List<StashPullRequestResponseValue> |
getPullRequests() |
Optional<String> |
mergePullRequest(String pullRequestId,
String version) |
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.StashApiException
public 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.StashApiException
@Nonnull public Optional<String> mergePullRequest(String pullRequestId, String version) throws StashApiClient.StashApiException
StashApiClient.StashApiException
Copyright © 2016–2020. All rights reserved.