I am using this API call to create a comment on a PR:
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-comments-post
This is my body payload:
{
"content": {
"raw": "##test comment"
}
}
Unfortunately the markdown is not applied. I have tried also this payload:
{
"content": {
"markup": "markup"
"raw": "##test comment"
}
}
but I am getting this error:
{
"type": "error",
"error": {
"message": "Bad request",
"fields": {
"content.markup": "extra keys not allowed"
}
}
}
How can I add markup comment on a PR? The documentation is really bad and it does not provide any examples.