Commit b0608ffa authored by Tim Olshansky's avatar Tim Olshansky

Merge pull request #85 from wikiwi/get-mr-note

Add Method to get a single Merge Request Note
parents 9f4577da b24033ed
......@@ -692,6 +692,22 @@ public class GitlabAPI {
return requestor.to(tailUrl, GitlabMergeRequest.class);
}
/**
* Get a Note from a Merge Request.
*
* @param mergeRequest The merge request
* @param noteId The id of the note
* @return the Gitlab Note
* @throws IOException on gitlab api call error
*/
public GitlabNote getNote(GitlabMergeRequest mergeRequest, Integer noteId) throws IOException {
String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() +
GitlabMergeRequest.URL + "/" + mergeRequest.getId() +
GitlabNote.URL + "/" + noteId;
return retrieve().to(tailUrl, GitlabNote.class);
}
public List<GitlabNote> getNotes(GitlabMergeRequest mergeRequest) throws IOException {
String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() +
GitlabMergeRequest.URL + "/" + mergeRequest.getId() +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment