Commit 61db87ea authored by Tim Olshansky's avatar Tim Olshansky Committed by GitHub

Merge pull request #153 from CWolff92/master

Added getNote(issue, noteId)
parents 1e210464 1ca72f3b
......@@ -1390,6 +1390,13 @@ public class GitlabAPI {
return requestor.to(tailUrl, GitlabIssue.class);
}
public GitlabIssue moveIssue(Integer projectId, Integer issueId, Integer toProjectId) throws IOException {
String tailUrl = GitlabProject.URL + "/" + projectId + GitlabIssue.URL + "/" + issueId + "/move";
GitlabHTTPRequestor requestor = dispatch();
requestor.with("to_project_id", toProjectId);
return requestor.to(tailUrl, GitlabIssue.class);
}
public GitlabIssue editIssue(int projectId, int issueId, int assigneeId, int milestoneId, String labels,
String description, String title, GitlabIssue.Action action) throws IOException {
String tailUrl = GitlabProject.URL + "/" + projectId + GitlabIssue.URL + "/" + issueId;
......@@ -1417,6 +1424,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