“提交评论”和“提交评论”有什么区别?和“立即添加评论”在 GitLab 的合并请求讨论中?
First time GitLab user and I'm a bit confused when reviewing someone's merge request. Whenever I add a comment I get prompted with two options: Submit review and Add comment now.
What's the difference between the two? Why is there a need for two options?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
刚刚从我的同事那里听到这个消息,所以不确定这是否 100% 准确:
立即添加评论:立即将评论添加到评论中,并通知评论者评论已添加。因此,如果您选择此选项 X 次,审阅者会收到 X 次通知。
提交评论:您可以在任意数量的文件中添加任意数量的评论。如果您在审核结束时选择此选项,审核者将仅收到 1 条包含您所有评论的通知。
Just heard this from my colleagues, so not sure if this is 100% accurate:
Add comment now: instantly adds the comment to the review and notifies the reviewer that a comment has been added. So if you choose this option X times, the reviewer receives X notifications.
Submit review: You can add as many comments as you want in as many files as you want. If you choose this option at the end of your review, the reviewer will receive only 1 notification containing all of your comments.
另一个区别是:立即提交审核(2022 年 8 月)附带摘要。
请参阅 GitLab 15.3(2022 年 8 月)
如果您的评论是简单的“LGTM”,那么您现在可以查看 GitLab 16.0(2023 年 5 月):
An additional difference: the submit review now (Aug. 2022) comes with a summary.
See GitLab 15.3 (August 2022)
And if your review is a simple "LGTM", you now have with See GitLab 16.0 (May 2023):
And GitLab 16.1 (June 2023) adds: