public function Github_Api_Repo::fork in Bibliography Module 7.2
Make the authenticated user fork a repository http://develop.github.com/p/repo.html
Parameters
string $username the user who owns the repo:
string $repo the name of the repo:
Return value
array informations about the newly forked repo
File
- modules/
CiteProc/ Github/ Api/ Repo.php, line 298
Class
- Github_Api_Repo
- Searching repositories, getting repository information and managing repository information for authenticated users.
Code
public function fork($username, $repo) {
$response = $this
->get('repos/fork/' . urlencode($username) . '/' . urlencode($repo));
return $response['repository'];
}