Skip to content

Commit 6a62720

Browse files
authored
Fix tests
1 parent 63ba9d8 commit 6a62720

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Gitlab/Api/MergeRequests.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function commits($project_id, $mr_id)
227227
*/
228228
public function approvals($project_id, $merge_request_iid)
229229
{
230-
return $this->get($this->getProjectPath($project_id, 'merge_requests/'.$this->encodePath($mr_id).'/approvals'));
230+
return $this->get($this->getProjectPath($project_id, 'merge_requests/'.$this->encodePath($merge_request_iid).'/approvals'));
231231
}
232232

233233
/**
@@ -238,7 +238,7 @@ public function approvals($project_id, $merge_request_iid)
238238
*/
239239
public function approve($project_id, $merge_request_iid)
240240
{
241-
return $this->post($this->getProjectPath($project_id, 'merge_requests/'.$this->encodePath($mr_id).'/approve'));
241+
return $this->post($this->getProjectPath($project_id, 'merge_requests/'.$this->encodePath($merge_request_iid).'/approve'));
242242
}
243243

244244
/**
@@ -249,6 +249,6 @@ public function approve($project_id, $merge_request_iid)
249249
*/
250250
public function unapprove($project_id, $merge_request_iid)
251251
{
252-
return $this->post($this->getProjectPath($project_id, 'merge_requests/'.$this->encodePath($mr_id).'/unapprove'));
252+
return $this->post($this->getProjectPath($project_id, 'merge_requests/'.$this->encodePath($merge_request_iid).'/unapprove'));
253253
}
254254
}

0 commit comments

Comments
 (0)