PHP Bitbucket API

Simple Bitbucket API wrapper for PHP

Issue comments

Manage issue comments.

Prepare:

$issue = new Bitbucket\API\Repositories\Issues();
$issue->setCredentials( new Bitbucket\API\Authentication\Basic($bb_user, $bb_pass) );

Fetch all comments:

$issue->comments()->all($accountname, $repo_slug, 4);

Fetch a single comment:

$issue->comments()->get($accountname, $repo_slug, 4, 2967835);

Add a new comment to specified issue:

$issue->comments()->create($accountname, $repo_slug, 4, 'dummy comment.');

Update existing comment:

$issue->comments()->update($accountname, $repo_slug, 4, 3454384, "dummy comment [edited]");