File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ public function commits($project_id, $mr_id)
227
227
*/
228
228
public function approvals ($ project_id , $ merge_request_iid )
229
229
{
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 ' ));
231
231
}
232
232
233
233
/**
@@ -238,7 +238,7 @@ public function approvals($project_id, $merge_request_iid)
238
238
*/
239
239
public function approve ($ project_id , $ merge_request_iid )
240
240
{
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 ' ));
242
242
}
243
243
244
244
/**
@@ -249,6 +249,6 @@ public function approve($project_id, $merge_request_iid)
249
249
*/
250
250
public function unapprove ($ project_id , $ merge_request_iid )
251
251
{
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 ' ));
253
253
}
254
254
}
You can’t perform that action at this time.
0 commit comments