Skip to content

Commit e720044

Browse files
committed
fix wrong comment endpoint for merge requests
1 parent 28b8059 commit e720044

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Gitlab/Api/MergeRequests.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public function merge($project_id, $mr_id, array $params)
4343
return $this->put('projects/'.urlencode($project_id).'/merge_request/'.urlencode($mr_id).'/merge', $params);
4444
}
4545

46-
public function showComments($project_id, $issue_id)
46+
public function showComments($project_id, $mr_id)
4747
{
48-
return $this->get('projects/'.urlencode($project_id).'/issues/'.urlencode($issue_id).'/notes');
48+
return $this->get('projects/'.urlencode($project_id).'/merge_request/'.urlencode($mr_id).'/comments');
4949
}
5050

5151
public function addComment($project_id, $mr_id, $note)

0 commit comments

Comments
 (0)