diff --git a/src/Api/MergeRequests.php b/src/Api/MergeRequests.php index 83d5b7d0..9eab4d90 100644 --- a/src/Api/MergeRequests.php +++ b/src/Api/MergeRequests.php @@ -202,6 +202,11 @@ public function merge(int|string $project_id, int $mr_iid, array $parameters = [ return $this->put($this->getProjectPath($project_id, 'merge_requests/'.self::encodePath($mr_iid).'/merge'), $parameters); } + public function mergeTrain($project_id, int $mr_iid, array $parameters = []) + { + return $this->post($this->getProjectPath($project_id, 'merge_trains/merge_requests/'.self::encodePath($mr_iid)), $parameters); + } + public function showNotes(int|string $project_id, int $mr_iid): mixed { return $this->get($this->getProjectPath($project_id, 'merge_requests/'.self::encodePath($mr_iid).'/notes'));