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

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

parent 1e210464
......@@ -1416,6 +1416,13 @@ public class GitlabAPI {
requestor.with("assignee_id", assigneeId == -1 ? 0 : assigneeId);
}
}
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 + "/"
......
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