class WatchingClient

Traits

Properties

protected $curl from CICommon
protected $api_url from CICommon

Methods

__construct(Curl $curl, string $api_url)

CICommon constructor.

from CICommon
mixed
list(string $repo_full_name)

List watchers.

mixed
listRepositoryBeingWatched(string $username = null)

List repositories being watched.

mixed
getRepositorySubscription(string $repo_full_name)

Get a Repository Subscription.

mixed
setRepositorySubscription(string $repo_full_name, bool $subscribed, bool $ignored)

Set a Repository Subscription.

void
deleteRepositorySubscription(string $repo_full_name)

Delete a Repository Subscription.

Details

in CICommon at line 18
__construct(Curl $curl, string $api_url)

CICommon constructor.

Parameters

Curl $curl
string $api_url

at line 20
mixed list(string $repo_full_name)

List watchers.

Parameters

string $repo_full_name

Return Value

mixed

Exceptions

Exception

at line 32
mixed listRepositoryBeingWatched(string $username = null)

List repositories being watched.

Parameters

string $username

Return Value

mixed

Exceptions

Exception

at line 50
mixed getRepositorySubscription(string $repo_full_name)

Get a Repository Subscription.

检查是否 watching repo

Parameters

string $repo_full_name

Return Value

mixed

Exceptions

Exception

at line 62
mixed setRepositorySubscription(string $repo_full_name, bool $subscribed, bool $ignored)

Set a Repository Subscription.

Parameters

string $repo_full_name
bool $subscribed
bool $ignored

Return Value

mixed

Exceptions

Exception

at line 79
void deleteRepositorySubscription(string $repo_full_name)

Delete a Repository Subscription.

204

Parameters

string $repo_full_name

Return Value

void

Exceptions

Exception