We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c68e564 commit 8f1454dCopy full SHA for 8f1454d
lib/Gitlab/Api/Projects.php
@@ -504,7 +504,12 @@ public function removeLabel($project_id, $name)
504
*/
505
public function fork($project_id, array $params = array())
506
{
507
- return $this->post($this->getProjectPath($project_id, 'fork'), $params);
+ $resolver = $this->createOptionsResolver();
508
+ $resolver->setDefined('namespace');
509
+
510
+ $resolved = $resolver->resolve($params);
511
512
+ return $this->post($this->getProjectPath($project_id, 'fork'), $resolved);
513
}
514
515
/**
0 commit comments