Changeset comments
Manage changeset comments.
Prepare:
$changesets = new Bitbucket\API\Repositories\Changesets();
$changesets->setCredentials( new Bitbucket\API\Authentication\Basic($bb_user, $bb_pass) );
Get a list of comments on a changeset:
$changesets->comments()->all($accountname, $repo_slug, 'a9f15cfdfb68436f324dd980eefdbb9d0dc3887c');
Delete a comment on a changeset:
$changesets->comments()->delete($accountname, $repo_slug, 'a9f15cfdfb68436f324dd980eefdbb9d0dc3887c', 195700);
Post a new comment on a changeset:
$changesets->comments()->create($accountname, $repo_slug, 'a9f15cfdfb68436f324dd980eefdbb9d0dc3887c', 'dummy comment 2');
Update a comment on a changeset:
$changesets->comments()->update($accountname, $repo_slug, 'a9f15cfdfb68436f324dd980eefdbb9d0dc3887c', 195753, 'edited comment');