Skip to content

Files

Latest commit

 

History

History
39 lines (28 loc) · 1005 Bytes

File metadata and controls

39 lines (28 loc) · 1005 Bytes

Issue comments

Manage issue comments.

Prepare:

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

Fetch all comments: (API 2.0)

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

Fetch a single comment: (API 2.0)

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

Add a new comment to specified issue: (API 2.0)

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

Update existing comment: (API 2.0)

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

Related: