From c9eea9f1a0600e44cdfa91ca68654bd7156a9c28 Mon Sep 17 00:00:00 2001 From: Darlinkster Date: Mon, 15 Jan 2018 10:44:47 +0100 Subject: [PATCH] Create merge request 500 error fix Parameter target_project_id must be filled otherwise if it is null gitlab returns 500 internal server error --- lib/Gitlab/Model/Project.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gitlab/Model/Project.php b/lib/Gitlab/Model/Project.php index 3b62a9f7c..e22df239b 100644 --- a/lib/Gitlab/Model/Project.php +++ b/lib/Gitlab/Model/Project.php @@ -724,7 +724,7 @@ public function mergeRequest($id) */ public function createMergeRequest($source, $target, $title, $assignee = null, $description = null) { - $data = $this->client->mergeRequests()->create($this->id, $source, $target, $title, $assignee, null, $description); + $data = $this->client->mergeRequests()->create($this->id, $source, $target, $title, $assignee, $this->id, $description); return MergeRequest::fromArray($this->getClient(), $this, $data); }