@@ -436,9 +436,28 @@ public AwardEmoji addNoteAwardEmoji(Object projectIdOrPath, Long issueIid, Long
436
436
* @param name the name of the award emoji to add
437
437
* @return an AwardEmoji instance for the added award emoji
438
438
* @throws GitLabApiException if any exception occurs
439
+ * @deprecated use {@link #addMergeRequestAwardEmoji(Object, Long, Long, String)} instead
439
440
*/
441
+ @ Deprecated
440
442
public AwardEmoji addMergeRequestAwardEmoji (
441
443
Object projectIdOrPath , Integer mergeRequestIid , Integer noteId , String name ) throws GitLabApiException {
444
+ return addMergeRequestAwardEmoji (projectIdOrPath , mergeRequestIid .longValue (), noteId .longValue (), name );
445
+ }
446
+
447
+ /**
448
+ * Add an award emoji for the specified merge request note.
449
+ *
450
+ * <pre><code>GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/notes/:noteId/award_emoji</code></pre>
451
+ *
452
+ * @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
453
+ * @param mergeRequestIid the merge request IID of the merge request that owns the note
454
+ * @param noteId the note ID to add the award emoji to
455
+ * @param name the name of the award emoji to add
456
+ * @return an AwardEmoji instance for the added award emoji
457
+ * @throws GitLabApiException if any exception occurs
458
+ */
459
+ public AwardEmoji addMergeRequestAwardEmoji (Object projectIdOrPath , Long mergeRequestIid , Long noteId , String name )
460
+ throws GitLabApiException {
442
461
GitLabApiForm form = new GitLabApiForm ().withParam ("name" , name , true );
443
462
Response response = post (
444
463
Response .Status .CREATED ,
0 commit comments