如何使用Gitlab设置代码审查? [英] How to set up a code review using Gitlab?

查看:1016
本文介绍了如何使用Gitlab设置代码审查?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Gitlab设置代码审查?我将它列为Gitlab网站上的一个功能,但我似乎无法找到如何设置它的说明(对于这一点,任何指向Gitlab用户手册的链接都将非常感激)。

How does one set up a code review using Gitlab? I see it listed as a feature on the Gitlab website, but I can't seem to find instructions on how to set one up (For that matter, any link to a Gitlab user manual would be most appreciated).

我的一些搜索表明'合并请求'是要走的路,但我发现它们是有限制的。已发布的合并请求显示一个分支与另一个分支之间的所有提交。我似乎只能查看为每个单独提交生成的差异。例如,假设我有一个我想查看的文件。这是一个新文件,但我已经在dev分支上提交了超过10次提交的更改。如果我从集成中为该开发分支发出合并请求,我会看到10个提交,其中每个显示对文件进行的增量更改...我想回顾整个事情。它是新的!

Some of my searching has indicated that 'Merge Requests' are the way to go... but I'm finding them limiting. An issued merge request shows all of the commits between one branch and the other. I seem to only be able to view diffs generated for each individual commit. For example, let's say I have a file I want to review. It is a new file but I've submitted changes to it over 10 commits on a dev branch. If I issue a merge request for that dev branch from integration I see 10 commits each of which show the incremental changes made to the file... I want to review the entire thing. It is new!

我在这儿咆哮错了吗?是否有一个我可以在GitLab中使用的实际代码审查工具,或者是合并请求的方式,如果他们是我使用它们不正确?

Am I barking up the wrong tree here? Is there an actual code-review tool I can use in GitLab, or are merge requests the way to go, and if they are am I using them incorrectly? what's the best way to set up a proper code review here?

推荐答案

注意:自从GitLab 6.4开始, side-by-side差异视图可用:请参阅拉请求5308

Note: since GitLab 6.4, side-by-side diff view is available: see "pull request 5308".

(2013年7月)尽管只有在文件级别才有可能评论每行。

Daniel Sokolowski 提及 现在支持每行注释 (09/2014):

(July 2013)There is no possibility yet to comment on each line though, only at the file level.
Daniel Sokolowski mentions in the comments that Per line comments are now supported (09/2014):


您的团队成员可以对合并请求进行一般性评论,也可以在特定的线路评论中对其进行评论。

Your team members can comment on the merge request in general or on specific lines with line comments.

可以帮助进行代码审查活动。

That still can help for code review activity.

这篇关于如何使用Gitlab设置代码审查?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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