python - How to create a comment on a Bitbucket pull request -
how programmatically make comment (preferrably python) on pull request hosted on bitbucket?
i have buildbot server continuously running tests on branches hosted on bitbucket, , after runs tests branch, want check pending pull requests , automatically create comment noting test status (e.g. pass/fail).
this , this indicate bitbucket has pretty rich api, , has methods listing comments, can't find method creating comment on pull request.
according 1.0 api documentation :
post new comment creates new comment on request using specified content data. caller must authenticated , have access repository create request. post https://api.bitbucket.org/1.0/repositories/{accountname}/{repo_slug}/pullrequests/{pull_request_id}/comments --data "content=string"
sample --data available in above location.
also, according this answer api 2.0 supports reading of pull request comments , api 1.0 needs used manipulate them.
Comments
Post a Comment