Skip to content

为啥要在合并PR之前批准PR? #2014

Answered by so1ve
Deep-Dark-Forest asked this question in 提问
Discussion options

You must be logged in to vote

因为在贡献代码之后项目维护者需要审查这个PR,比如有没有潜在的bug,代码格式是否过关,ci和测试能不能通过等等等等。如果有上述问题就让贡献者修改直到改好,然后批准一下,就能合并了。当然这是大项目,小项目如果你写着玩那当然无所谓。像Vite那样的项目一般需要两个人来审查PR,必须要两个人同时批准才能合并,这样能保证代码质量

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@Deep-Dark-Forest
Comment options

Deep-Dark-Forest Jul 9, 2023
Collaborator Author

@iPodtouch6557
Comment options

@so1ve
Comment options

@Pigeon0v0
Comment options

@iPodtouch6557
Comment options

Answer selected by Deep-Dark-Forest
Comment options

You must be logged in to vote
2 replies
@so1ve
Comment options

@PlayMcBKuwu
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
提问
Labels
None yet
7 participants