class CommitsClient

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, string $sha, string $path, string $author, string $since, string $until)

List commits on a repository.

mixed
get(string $repo_full_name, string $sha)

Get a single commit.

mixed
getShaOfRef(string $repo_full_name, string $ref)

Get the SHA-1 of a commit reference.

mixed
compare(string $repo_full_name, string $base, string $head)

Compare two commits.

mixed
SignatureVerification(string $repo_full_name, string $sha)

Commit signature verification.

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, string $sha, string $path, string $author, string $since, string $until)

List commits on a repository.

Parameters

string $repo_full_name
string $sha
string $path
string $author
string $since
string $until

Return Value

mixed

Exceptions

Exception

at line 47
mixed get(string $repo_full_name, string $sha)

Get a single commit.

Parameters

string $repo_full_name
string $sha

Return Value

mixed

Exceptions

Exception

at line 61
mixed getShaOfRef(string $repo_full_name, string $ref)

Get the SHA-1 of a commit reference.

Parameters

string $repo_full_name
string $ref

Return Value

mixed

Exceptions

Exception

at line 75
mixed compare(string $repo_full_name, string $base, string $head)

Compare two commits.

Parameters

string $repo_full_name
string $base
string $head

Return Value

mixed

Exceptions

Exception

at line 89
mixed SignatureVerification(string $repo_full_name, string $sha)

Commit signature verification.

Parameters

string $repo_full_name
string $sha

Return Value

mixed

Exceptions

Exception