简体   繁体   English

GitHub中分支的代码审查

[英]Code review of a branch in GitHub

I need to do a code review of a whole branch in GitHub. 我需要在GitHub中对整个分支进行代码审查。 I went to the branches page and hit compare . 我去了分支页面并点击比较 There's a tab there, files changed, that shows exactly what I need, the diff between the two branches, master and the selected one. 那里有一个标签,文件已经更改,显示了我需要的内容,两个分支之间的差异,主分支和选定的分支。 The problem is that it doesn't allow you to comment on code like a single diff does : 问题是它不允许你像单个差异一样评论代码:

github代码审查界面

The blue bubble just doesn't appear on the branch diff page. 蓝色气泡不会出现在分支差异页面上。

Does anybody know how to perform a code review of a whole branch in GitHub? 有人知道如何在GitHub中对整个分支进行代码审查吗?

Thanks. 谢谢。

Apparently there's no UI to write comments on a branch diff. 显然没有UI可以在分支差异上写评论。 My solution for now was asking the other programmer to do a pull request. 我现在的解决方案是要求其他程序员执行拉取请求。 It did work to do a pull request from one project to itself and in the pull request I can write comments. 确实可以从一个项目到自己执行拉取请求,在拉取请求中我可以编写注释。

I think you might have known already that you could comment on each commit by clicking on the commit link. 我想你可能已经知道you could comment on each commit通过点击提交链接you could comment on each commit Not answering your question on the whole files compare as in pull request but I do hope this is useful for someone else. 没有回答你对整个文件的问题比较拉请求,但我希望这对其他人有用。

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

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