Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract inline comments given while code review using the bitbucket-api

I am using http://restbrowser.bitbucket.org/

In version2 and version1 even I could find rest calls to get details of the comments given during "commit" or during "pull-request".

Bitbucket has a decent feature of inline comments for code review as in http://blog.bitbucket.org/2012/10/30/building-inline-comments-for-pull-requests-and-commits/

Unfortunately, stackoverflow dont allow me to post images directly here(due to my low reputation) Please refer to the above link for image detail of inline comments.

I tried all the api calls in restbrowser, I am not sure If i have missed some calls, but could not extract these inline comments with any of the rest call available.

curl --request GET --user USERNAME:PASSWORD https://bitbucket.org/api/2.0/repositories/IIITSERC/ssad34/commits/ce0fda6

The nearest,this returns the comments during commit messages, issues and all other stuff, but not the inline comments. Please suggest a way to extract those comments. This is needed for my research. Any help appreciated . Thanks in advance.

like image 933
Sai-K Avatar asked Nov 25 '25 16:11

Sai-K


1 Answers

I have given an additional 's' /commits/ part in the url. The correct url is:

curl --request GET --user USERNAME:PASSWORD https://bitbucket.org/api/2.0/repositories/{owner}/{repo_slug}/commit/{commid_id}/comments/

Thanks.

like image 61
Sai-K Avatar answered Nov 27 '25 06:11

Sai-K



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!