简体   繁体   English

如何在gitlab中对许多提交进行代码审查?

[英]How to do a code review for many commits in gitlab?

What is the easiest/best way to review a merge request in gitlab for a branch that has many commits? 在gitlab中查看包含多个提交的分支的合并请求的最简单/最好的方法是什么? Is there a “unified” view I can use somehow or is the only option to click on the “Changes” tab and go through each individual commits one by one? 是否有一个“统一”的视图,我可以以某种方式使用或是唯一的选项,单击“更改”选项卡,逐个审阅每个单独的提交?

You do not need to go through each invidividual commit one by one. 您不需要逐个完成每个invidividual提交。

You should click on the Merge Request's "Changes" tab, instead of the "Changes" tab of individual commits, so you see the changes between the latest version and the branch you want to merge into, eg with Master: 您应该单击合并请求的“更改”选项卡,而不是单个提交的“更改”选项卡,以便您看到最新版本和要合并到的分支之间的更改,例如使用Master:

在此输入图像描述

This way, you will see all changes that are proposed within the merge request and you can review them all at once. 这样,您将看到合并请求中提议的所有更改,您可以一次查看它们。

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

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