Skip to content

Commit 54f28f1

Browse files
committed
Allow to retrieve Merge Requests commits
1 parent 2c262db commit 54f28f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Gitlab/Api/MergeRequests.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,14 @@ public function getByIid($project_id, $mr_iid)
195195
{
196196
return $this->get($this->getProjectPath($project_id, 'merge_requests'), array('iid' => $mr_iid));
197197
}
198+
199+
/**
200+
* @param int $project_id
201+
* @param int $mr_id
202+
* @return mixed
203+
*/
204+
public function commits($project_id, $mr_id)
205+
{
206+
return $this->get($this->getProjectPath($project_id, 'merge_request/'.$this->encodePath($mr_id).'/commits'));
207+
}
198208
}

0 commit comments

Comments
 (0)