简体   繁体   English

github:没有拉请求就启动代码审查?

[英]github: initiate code review without pull request?

it is a bad way to do code reviews after pull request has been initiated. 启动请求请求后,进行代码检查是一种不好的方法。 sometimes we want to do code reviews before the whole thing is ready for integration. 有时我们想在整个事情准备好进行集成之前进行代码审查。 is there any tools out there that will allow code review without pull request? 是否有任何工具可以在没有请求请求的情况下进行代码审查? I prefer cloud based solution such as reviewable but it only works with pull request... 我更喜欢基于云的解决方案,例如可审阅,但仅适用于拉取请求...

Fastforward to 2019. Github now offers "draft pull requests": 快进到2019年。Github现在提供“草稿请求”:

https://github.blog/2019-02-14-introducing-draft-pull-requests/ https://github.blog/2019-02-14-introducing-draft-pull-requests/

WIP (Work in Progress) pull requests are pretty common. WIP(进行中的工作)请求很常见。 GitHub doesn't have a built-in feature like GitLab or Gerrit have, but it's pretty easy to just do this by consensus: Open a PR that's prefixed with WIP: to indicate it isn't ready for being merged, but is open to feedback, and keep updating it (with git push --force most probably) as you go. GitHub没有像GitLab或Gerrit那样的内置功能,但是很容易以协商一致的方式做到这一点:打开一个以WIP:为前缀的PR WIP:表明它尚未准备好被合并,但可以接受反馈,并随时进行更新(最有可能使用git push --force )。 Once you're done, you can remove the WIP: prefix. 完成后,您可以删除WIP:前缀。

EDIT: 编辑:
While it isn't a built-in feature, the WIP third party app seems to help automate this for you, and prevent you from merging a WIP branch by mistake. 尽管不是内置功能,但WIP第三方应用程序似乎可以帮助您自动执行此操作,并防止您错误地合并WIP分支。

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

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