Commit ac3c119c authored by CWolff92's avatar CWolff92 Committed by GitHub

Added getNote(issue, noteId) to get a single note

parent 1e210464
......@@ -1417,6 +1417,13 @@ public class GitlabAPI {
}
}
public GitlabNote getNote(Gitlabissue issue, Integer noteId) throws IOException {
String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() +
GitlabIssue.URL + "/" + issue.getId() +
GitlabNote.URL + "/" + noteId;
return retrieve().to(tailUrl, GitlabNote.class);
}
public List<GitlabNote> getNotes(GitlabIssue issue) throws IOException {
String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/"
+ issue.getId() + GitlabNote.URL;
......
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