public function Github_Api_Repo::setRepoInfo in Bibliography Module 7.2
Set information of 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:
array $values the key => value pairs to post:
Return value
array informations about the repo
File
- modules/
CiteProc/ Github/ Api/ Repo.php, line 133
Class
- Github_Api_Repo
- Searching repositories, getting repository information and managing repository information for authenticated users.
Code
public function setRepoInfo($username, $repo, $values) {
$response = $this
->post('repos/show/' . urlencode($username) . '/' . urlencode($repo), array(
'values' => $values,
));
return $response['repository'];
}