Skip to content

Commit 4168b2d

Browse files
committed
Merge pull request #47 from davidkuridza/bug/fix-wrong-MR-comments-endpoint
fix wrong comments endpoint for merge requests
2 parents 28b8059 + e720044 commit 4168b2d

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)