Issue milestones
Manage milestones on a issue tracker.
Prepare:
$issue = new Bitbucket\API\Repositories\Issues();
$issue->setCredentials( new Bitbucket\API\Authentication\Basic($bb_user, $bb_pass) );
Fetch all milestones:
$issue->milestones()->all($accountname, $repo_slug);
Fetch a single milestone:
$issue->milestones()->get($accountname, $repo_slug, 56735);
Add a new milestone:
$issue->milestones()->create($accountname, $repo_slug, 'dummy');
Update an existing milestone:
$issue->milestones()->update($accountname, $repo_slug, 56736, 'not dummy');
Delete an existing milestone:
$issue->milestones()->delete($accountname, $repo_slug, 56736);