From e720044492d20fc83caed4058a7493e3ff2f8988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Kurid=C5=BEa?= Date: Mon, 21 Jul 2014 12:46:44 +0200 Subject: [PATCH] fix wrong comment endpoint for merge requests --- lib/Gitlab/Api/MergeRequests.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Gitlab/Api/MergeRequests.php b/lib/Gitlab/Api/MergeRequests.php index 051c8c779..a457d25b6 100644 --- a/lib/Gitlab/Api/MergeRequests.php +++ b/lib/Gitlab/Api/MergeRequests.php @@ -43,9 +43,9 @@ public function merge($project_id, $mr_id, array $params) return $this->put('projects/'.urlencode($project_id).'/merge_request/'.urlencode($mr_id).'/merge', $params); } - public function showComments($project_id, $issue_id) + public function showComments($project_id, $mr_id) { - return $this->get('projects/'.urlencode($project_id).'/issues/'.urlencode($issue_id).'/notes'); + return $this->get('projects/'.urlencode($project_id).'/merge_request/'.urlencode($mr_id).'/comments'); } public function addComment($project_id, $mr_id, $note)