Skip to content

Commit b0a0887

Browse files
authored
Merge pull request #140 from shulard/feature/handle-repo-forking
Allow to fork a repository in current namespace
2 parents 3e5c8f2 + 9334ccf commit b0a0887

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)