diff --git a/src/main/java/org/gitlab4j/api/NotesApi.java b/src/main/java/org/gitlab4j/api/NotesApi.java index 27b594827..9742f2d05 100644 --- a/src/main/java/org/gitlab4j/api/NotesApi.java +++ b/src/main/java/org/gitlab4j/api/NotesApi.java @@ -524,6 +524,22 @@ public Note createMergeRequestNote( return (response.readEntity(Note.class)); } + /** + * Create a merge request's note. + * + *
GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/notes/:note_id
+ *
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
+ * @param mergeRequestIid the merge request IID to create the notes for
+ * @param body the content of note
+ * @return the created Note instance
+ * @throws GitLabApiException if any exception occurs
+ */
+ public Note createMergeRequestNote(Object projectIdOrPath, Long mergeRequestIid, String body)
+ throws GitLabApiException {
+ return createMergeRequestNote(projectIdOrPath, mergeRequestIid, body, null, false);
+ }
+
/**
* Update the specified merge request's note.
*