CollaboratorsClient
class CollaboratorsClient
Methods
__construct(Curl $curl, string $api_url)
Collaborators constructor.
mixed
list(string $repo_full_name)
List collaborators.
bool
exists(string $repo_full_name, string $user)
Check if a user is a collaborator.
bool
reviewPermissionLevel(string $repo_full_name, string $user, string $level)
Review a user's permission level.
void
add()
Add user as a collaborator.
void
remove()
Remove user as a collaborator.
Details
at line 19
__construct(Curl $curl, string $api_url)
Collaborators constructor.
at line 33
mixed
list(string $repo_full_name)
List collaborators.
at line 47
bool
exists(string $repo_full_name, string $user)
Check if a user is a collaborator.
at line 76
bool
reviewPermissionLevel(string $repo_full_name, string $user, string $level)
Review a user's permission level.
at line 86
void
add()
Add user as a collaborator.
at line 93
void
remove()
Remove user as a collaborator.