GitHub 中分支的代码审查

发布于 2024-12-01 10:18:22 字数 544 浏览 2 评论 0原文

我需要对 GitHub 中的整个分支进行代码审查。我转到 分支页面 并点击 比较。那里有一个选项卡,文件已更改,它准确地显示了我需要的内容,两个分支(主分支和所选分支)之间的差异。问题是它不允许您像 单个 diff 那样评论代码 :

github 代码审查界面

蓝色气泡不会出现在分支差异页面上。

有人知道如何对 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:

github code review interface

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

寻找一个思念的角度 2024-12-08 10:18:22

显然没有 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.

两仪 2024-12-08 10:18:22

我想您可能已经知道您可以通过单击提交链接对每个提交发表评论。与拉取请求相比,没有回答您对整个文件的问题,但我确实希望这对其他人有用。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文