How do I post a pull request comment using BitBuck

2019-04-20 18:31发布

Using REST API 1.0, I can do the following

POST /api/1.0/repositories/{owner}/{repo}/pullrequests/1/comments

What is the equivalent of this in 2.0? 2.0 documentation for pullrequests resource states "Finally, you can use this resource to manage the comments on a pull request as well." I don't see a POST for comments similar to 1.0 companion; nor does PUT do anything about comments.

Is posting comments on a PR supported in 2.0?

1条回答
啃猪蹄的小仙女
2楼-- · 2019-04-20 19:13

Unfortunately pull request comments are currently read-only in 2.0. We are definitely keen to finish that API, but these efforts have been rather under prioritized.

For now, 1.0 remains the only way to mutate PR comments.

Also see: https://answers.atlassian.com/questions/32977327/are-you-planning-on-offering-an-update-pull-request-comment-api

查看更多
登录 后发表回答