Skip to content

Commit c9eea9f

Browse files
authored
Create merge request 500 error fix
Parameter target_project_id must be filled otherwise if it is null gitlab returns 500 internal server error
1 parent efbba6f commit c9eea9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Gitlab/Model/Project.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ public function mergeRequest($id)
724724
*/
725725
public function createMergeRequest($source, $target, $title, $assignee = null, $description = null)
726726
{
727-
$data = $this->client->mergeRequests()->create($this->id, $source, $target, $title, $assignee, null, $description);
727+
$data = $this->client->mergeRequests()->create($this->id, $source, $target, $title, $assignee, $this->id, $description);
728728

729729
return MergeRequest::fromArray($this->getClient(), $this, $data);
730730
}

0 commit comments

Comments
 (0)