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
...@@ -1389,6 +1389,13 @@ public class GitlabAPI { ...@@ -1389,6 +1389,13 @@ public class GitlabAPI {
return requestor.to(tailUrl, GitlabIssue.class); 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, public GitlabIssue editIssue(int projectId, int issueId, int assigneeId, int milestoneId, String labels,
String description, String title, GitlabIssue.Action action) throws IOException { String description, String title, GitlabIssue.Action action) throws IOException {
...@@ -1416,6 +1423,13 @@ public class GitlabAPI { ...@@ -1416,6 +1423,13 @@ public class GitlabAPI {
requestor.with("assignee_id", assigneeId == -1 ? 0 : assigneeId); 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 { public List<GitlabNote> getNotes(GitlabIssue issue) throws IOException {
String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" 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