Open ivandw opened 1 year ago
I'm encountering the same issue. If you bump up the logging you'll find it's sending a request like this:
DEBUG:atlassian.rest_client:curl --silent -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' --data '"{\"text\": \"test\"}"' 'https://api.bitbucket.org/2.0/repositories/myproj/myrepository/pullrequests/123/comments'
The body is incorrect. It should be something like {"content": {"raw": "test"}}
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-comments-post
Any workaround?
Any workaround?
Feel free to raise a PR to fix the issue.
I just used the REST API directly. It's very straight forward. API Ref
Regarding the PR I worry that if this one is out of date, then there may be a whole chunk that are also, and doing this piecemeal will just be frustrating for future users. Better to review the whole API.
Hello there, im trying to generate a comment in a pull request using bitbucket cloud and im getting an error.
Steps to reproduce:
using this sample code block, im trying to generate a comment in the pull request 101 of some repo inside my org of bitbucket cloud.
im getting this error:
atlassian-python-api version 3.41.0 Python version 3.11.4 pip version 23.2.1
any suggestions? i can confirm that the username and app password is working well since i can create the pr comment using curl with the same credentials.
Thanks in advice.