public function Github_Api_Repo::setPrivate in Bibliography Module 7.2
Set the visibility of a repostory to private http://develop.github.com/p/repo.html
Parameters
string $repo the name of the repo:
Return value
array informations about the repo
File
- modules/
CiteProc/ Github/ Api/ Repo.php, line 161
Class
- Github_Api_Repo
- Searching repositories, getting repository information and managing repository information for authenticated users.
Code
public function setPrivate($repo) {
$response = $this
->get('repos/set/private/' . urlencode($repo));
return $response['repository'];
}