public function Github_Api_Repo::removeRepoCollaborator in Bibliography Module 7.2
Delete a collaborator from a repository http://develop.github.com/p/repo.html
Parameters
string $repo the name of the repo:
string $username the user who should be removed as a collaborator:
Return value
array list of the repo collaborators
File
- modules/
CiteProc/ Github/ Api/ Repo.php, line 253
Class
- Github_Api_Repo
- Searching repositories, getting repository information and managing repository information for authenticated users.
Code
public function removeRepoCollaborator($repo, $username) {
$response = $this
->post('repos/collaborators/' . urlencode($repo) . '/remove/' . urlencode($username));
return $response['collaborators'];
}