Skip to content

Commit 9334ccf

Browse files
committed
Allow to fork a repository in current namespace
1 parent 2c262db commit 9334ccf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,15 @@ public function removeLabel($project_id, $name)
378378
));
379379
}
380380

381+
/**
382+
* @param int $project_id
383+
* @return mixed
384+
*/
385+
public function fork($project_id)
386+
{
387+
return $this->post('projects/fork/'.$this->encodePath($project_id));
388+
}
389+
381390
/**
382391
* @param int $project_id
383392
* @param int $forked_project_id

0 commit comments

Comments
 (0)