为啥要在合并PR之前批准PR? #2014
Answered
by
so1ve
Deep-Dark-Forest
asked this question in
提问
为啥要在合并PR之前批准PR?
#2014
-
为啥不能直接合并? |
Beta Was this translation helpful? Give feedback.
Answered by
so1ve
Jun 10, 2023
Replies: 3 comments 7 replies
-
因为在贡献代码之后项目维护者需要审查这个PR,比如有没有潜在的bug,代码格式是否过关,ci和测试能不能通过等等等等。如果有上述问题就让贡献者修改直到改好,然后批准一下,就能合并了。当然这是大项目,小项目如果你写着玩那当然无所谓。像Vite那样的项目一般需要两个人来审查PR,必须要两个人同时批准才能合并,这样能保证代码质量 |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
Deep-Dark-Forest
-
直接合并,你会获得 YOLO Highlight。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
因为在贡献代码之后项目维护者需要审查这个PR,比如有没有潜在的bug,代码格式是否过关,ci和测试能不能通过等等等等。如果有上述问题就让贡献者修改直到改好,然后批准一下,就能合并了。当然这是大项目,小项目如果你写着玩那当然无所谓。像Vite那样的项目一般需要两个人来审查PR,必须要两个人同时批准才能合并,这样能保证代码质量