简体   繁体   English

如何查看 GitLab 中的合并审阅意见和文件更改?

[英]How to view merge review comments and file changes in GitLab?

I'm performing a merge review (code review) in GitLab.我正在 GitLab 中执行合并审查(代码审查)。 I entered some file comments then the author responded to the comments and made some changes to the files.我输入了一些文件评论,然后作者回复了评论并对文件进行了一些更改。 I can view the comment thread, and the relevant portion of the original file on the merge request Overview page.我可以在合并请求概述页面上查看评论线程和原始文件的相关部分。 And a link there will take me to a diff between the original and changed files.那里的链接将带我了解原始文件和更改文件之间的差异。

But how can I see the comment, response and file diff at the same time?但是我怎样才能同时看到评论、响应和文件差异呢? Open the diff link in a new window?在新的 window 中打开差异链接?

GitLab version = Enterprise Edition 12.10.1-ee GitLab 版本 = 企业版 12.10.1-ee

(Newbie stackexchange user - Apologies for any breaches of etiquette.) (新手 stackexchange 用户 - 对任何违反礼仪的行为表示歉意。)

If you want to see all the merge requests, you can check that in the left panel as 'Merge request' option.如果您想查看所有合并请求,可以在左侧面板中将其选中为“合并请求”选项。 If you check the particular merge request, you can see Discussion, Commits, Changes at the bottom.如果您检查特定的合并请求,您可以在底部看到Discussion, Commits, Changes It will be easier here for you to check what changes has been made.在这里您可以更轻松地查看所做的更改。

Check if GitLab 14.6 (December 2021) improves your use case:检查GitLab 14.6 (2021 年 12 月)是否改进了您的用例:

View inline the change that outdated a merge request thread内联查看使合并请求线程过时的更改

When addressing review feedback in merge requests, you often change lines your reviewers have commented on.在处理合并请求中的审阅反馈时,您通常会更改审阅者评论过的行。
In those comment threads, GitLab indicates that new changes were made.在这些评论线程中,GitLab 表示进行了新的更改。

However, to understand if those new changes address the feedback, reviewers would have to navigate away from the context of the discussion.但是,要了解这些新更改是否解决了反馈问题,审阅者必须远离讨论的背景。

Now, when viewing threads related to old changes, you can view the new changes directly in the thread .现在,在查看与旧更改相关的线程时,您可以直接在线程中查看新更改
This improved context helps you review faster and more accurately.这种改进的上下文可帮助您更快、更准确地查看。

https://about.gitlab.com/images/14_6/create-code-review-outdated-change-inline.png -- 查看内联合并请求线程过期的更改

See Documentation and Issue .请参阅文档问题

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

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