简体   繁体   English

如何从 GitLab api 创建合并请求审查?

[英]How to create a merge request review from the GitLab api?

I'm trying to replicate the ability to add reviews to GitLab merge requests in my app and I don't see anything in the api documentation related to merge request reviews or merge request draft notes.我正在尝试在我的应用程序中复制向 GitLab 合并请求添加评论的能力,但在 api 文档中没有看到与合并请求评论或合并请求草稿注释相关的任何内容。

On the web version of GitLab, when I create a comment on a line of code in a commit and I select 'Start a review', I can see a POST to http://<myInstance>/<myProject/-/merge_requests/<id>/drafts . On the web version of GitLab, when I create a comment on a line of code in a commit and I select 'Start a review', I can see a POST to http://<myInstance>/<myProject/-/merge_requests/<id>/drafts If I execute a GET on that, I can see my pending review comment (note) in the response.如果我对此执行 GET,我可以在响应中看到我的待审核评论(注释)。

Is there anyway to create / read / update / delete merge request reviews with the GitLab api?无论如何要使用 GitLab api 创建/读取/更新/删除合并请求评论?

Currently, as of Gitlab 13.9, there is no support for this.目前,从 Gitlab 13.9 开始,不支持此功能。 The closest it gets for an API for Merge Request Reviews is this issue/feature request asking for an API to retrieve Review comments: https://gitlab.com/gitlab-org/gitlab/-/issues/12297最接近合并请求评论的 API 是此问题/功能请求,要求 API 检索评论评论: Z5E056C500A1C4B6A7110B50D807BADE75Z://gitlab/issue.com/gitlab29

If you're a paid user, contacting support/sales is a good option since they tend to add features themselves when paid users request it, but tend to let the community add an Open Source contribution otherwise.如果您是付费用户,联系支持/销售人员是一个不错的选择,因为他们倾向于在付费用户请求时自己添加功能,但倾向于让社区添加开源贡献。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM