Pull request comments (delete/update)

Issue #70 new
Daniel Nieto created an issue

Hi,

I'm always getting a "Forbidden message if I try to delete a PR comment or to update its content.

I tried also using API 1.0, do you know any about that? Has BB delete this resource? in that case, you should remove from your Repo...

Thanks!

Comments (2)

  1. Alexandru Guzinschi

    If you received a 403 Forbidden it means that you either forgot to authenticate, or your consumer lack pullrequest:write scope.

    You could dump the response and see the reason of the error:

    // @see: https://gentlero.bitbucket.io/bitbucket-api/1.0/examples/repositories/pull-requests/comments.html#update-an-existing-comment
    $response = $pull->comments()->update(/** ... */);
    var_dump($response);
    

    If this is the case, you should edit your consumer and give it pullrequest:write scope.

  2. Log in to comment