public class StashApiClient extends Object
| Constructor and Description |
|---|
StashApiClient(org.eclipse.jgit.transport.URIish stashUri,
com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials) |
| Modifier and Type | Method and Description |
|---|---|
void |
deletePullRequestComment(String pullRequestId,
String commentId) |
void |
deleteRequest(String path) |
String |
getHost() |
String |
getProject() |
List<StashPullRequestComment> |
getPullRequestComments(String projectCode,
String commentRepositoryName,
String pullRequestId) |
StashPullRequestMergableResponse |
getPullRequestMergeStatus(String pullRequestId) |
List<StashPullRequestResponseValue> |
getPullRequests() |
String |
getRepositoryName() |
protected static StashPullRequestMergableResponse |
parsePullRequestMergeStatus(String response) |
StashPullRequestComment |
postPullRequestComment(String pullRequestId,
String comment) |
public StashApiClient(org.eclipse.jgit.transport.URIish stashUri,
com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials)
public String getHost()
public String getProject()
public String getRepositoryName()
public List<StashPullRequestResponseValue> getPullRequests()
public List<StashPullRequestComment> getPullRequestComments(String projectCode, String commentRepositoryName, String pullRequestId)
public void deletePullRequestComment(String pullRequestId, String commentId)
public StashPullRequestComment postPullRequestComment(String pullRequestId, String comment)
public StashPullRequestMergableResponse getPullRequestMergeStatus(String pullRequestId)
public void deleteRequest(String path)
protected static StashPullRequestMergableResponse parsePullRequestMergeStatus(String response) throws IOException
IOExceptionCopyright © 2004-2015. All Rights Reserved.