class StatusClient

The status API allows external services to mark commits with an error, failure, pending, or success state, which is then reflected in pull requests involving those commits.

Methods

__construct(Curl $curl, string $api_url)

Status constructor.

mixed
list(string $username, string $repo, string $ref)

No description

mixed
create(string $username, string $repo, string $commit_sha, string $state = 'pending', string $target_url = 'https://ci.khs1994.com', string $context = 'continuous-integration/ci.khs1994.com/push', string $description = 'The analysis or builds is pending')

No description

mixed
listCombinedStatus($username, $repo, $ref)

获取某分支的组合状态信息.

Details

at line 24
__construct(Curl $curl, string $api_url)

Status constructor.

Parameters

Curl $curl
string $api_url

at line 36
mixed list(string $username, string $repo, string $ref)

Parameters

string $username
string $repo
string $ref

Return Value

mixed

Exceptions

Exception

at line 51
mixed create(string $username, string $repo, string $commit_sha, string $state = 'pending', string $target_url = 'https://ci.khs1994.com', string $context = 'continuous-integration/ci.khs1994.com/push', string $description = 'The analysis or builds is pending')

Parameters

string $username
string $repo
string $commit_sha
string $state
string $target_url
string $context
string $description

Return Value

mixed

Exceptions

Exception

at line 93
mixed listCombinedStatus($username, $repo, $ref)

获取某分支的组合状态信息.

Parameters

$username
$repo
$ref

Return Value

mixed

Exceptions

Exception