GitHub 中分支的代码审查
我需要对 GitHub 中的整个分支进行代码审查。我转到 分支页面 并点击 比较。那里有一个选项卡,文件已更改,它准确地显示了我需要的内容,两个分支(主分支和所选分支)之间的差异。问题是它不允许您像 单个 diff 那样评论代码 :
蓝色气泡不会出现在分支差异页面上。
有人知道如何对 GitHub 中的整个分支进行代码审查吗?
谢谢。
I need to do a code review of a whole branch in 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:
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?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
显然没有 UI 可以在分支差异上编写注释。我现在的解决方案是要求其他程序员执行拉取请求。它确实可以从一个项目向其自身发出拉取请求,并且在拉取请求中我可以编写评论。
Apparently there's no UI to write comments on a branch diff. 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. Not answering your question on the whole files compare as in pull request but I do hope this is useful for someone else.