class MilestonesClient

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 milestones for a repository.

mixed
get(string $repo_full_name, string $milestone_number)

Get a single milestone.

void
create(string $repo_full_name, string $title, string|null $description, string|null $due_on, string $state = 'open')

Create a milestone.

void
update(string $repo_full_name, int $milestone_number, string $title, string|null $description, string|null $due_on, string $state = 'open')

Update a milestone.

void
delete(string $repo_full_name, int $milestone_number)

Delete a milestone.

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 milestones for a repository.

Parameters

string $repo_full_name

Return Value

mixed

Exceptions

Exception

at line 32
mixed get(string $repo_full_name, string $milestone_number)

Get a single milestone.

Parameters

string $repo_full_name
string $milestone_number

Return Value

mixed

Exceptions

Exception

at line 49
void create(string $repo_full_name, string $title, string|null $description, string|null $due_on, string $state = 'open')

Create a milestone.

201

Parameters

string $repo_full_name
string $title
string|null $description
string|null $due_on
string $state

Return Value

void

Exceptions

Exception

at line 61
void update(string $repo_full_name, int $milestone_number, string $title, string|null $description, string|null $due_on, string $state = 'open')

Update a milestone.

Parameters

string $repo_full_name
int $milestone_number
string $title
string|null $description
string|null $due_on
string $state

Return Value

void

Exceptions

Exception

at line 77
void delete(string $repo_full_name, int $milestone_number)

Delete a milestone.

204

Parameters

string $repo_full_name
int $milestone_number

Return Value

void

Exceptions

Exception