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.

Parameters

Curl $curl
string $api_url

at line 33
mixed list(string $repo_full_name)

List collaborators.

Parameters

string $repo_full_name

Return Value

mixed

Exceptions

Exception

at line 47
bool exists(string $repo_full_name, string $user)

Check if a user is a collaborator.

Parameters

string $repo_full_name
string $user

Return Value

bool

Exceptions

Exception

at line 76
bool reviewPermissionLevel(string $repo_full_name, string $user, string $level)

Review a user's permission level.

Parameters

string $repo_full_name
string $user
string $level

Return Value

bool

Exceptions

Exception

at line 86
void add()

Add user as a collaborator.

Return Value

void

at line 93
void remove()

Remove user as a collaborator.

Return Value

void