如何使用BitBucket REST api 2.0发布请求请求注释? [英] How do I post a pull request comment using BitBucket REST api 2.0?

查看:220
本文介绍了如何使用BitBucket REST api 2.0发布请求请求注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用REST API 1.0,我可以执行以下操作

Using REST API 1.0, I can do the following

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

2.0中的等效项是什么? 2.0 文档 for pullrequests资源状态最后,您可以使用此资源来同时管理对拉取请求的评论。我没有看到与1.0伴侣相似的评论的POST;

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.

是否在2.0版支持的PR上发布注释?

Is posting comments on a PR supported in 2.0?

推荐答案

不幸的是,拉取请求注释当前在2.0中为只读。我们当然很想完成该API,但是这些工作的优先级却一直没有得到重视。

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.

目前,1.0仍然是改变PR评论的唯一方法。

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

另请参阅: https://answers.atlassian.com/questions/32977327/are-you-planning-on-offering-an-update-pull-request-comment-api

这篇关于如何使用BitBucket REST api 2.0发布请求请求注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆