Issue comments
Manage issue comments.
Prepare:
// @see: https://bitbucket.org/account/user/<username or team>/api
$oauth_params = array(
'client_id' => 'aaa',
'client_secret' => 'bbb'
);
$issue = new \Bitbucket\API\Repositories\Issues();
$issue->getClient()->addListener(
new \Bitbucket\API\Http\Listener\OAuth2Listener($oauth_params)
);
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]");