Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

团队协作流程 #3

Open
anig1scur opened this issue Jul 10, 2024 · 1 comment
Open

团队协作流程 #3

anig1scur opened this issue Jul 10, 2024 · 1 comment

Comments

@anig1scur
Copy link
Contributor

anig1scur commented Jul 10, 2024

1. 采用 fork + pull request

每个团队成员在进行开发时,首先从主仓库 fork 一份自己的副本,然后在自己的仓库上进行开发。当开发完成后,提交 pull request (PR) 请求合并代码回上游。避免冲突,方便 review。

image

2. 在 pull request 中应该做些什么

对于非常小的修复或改动,可以简化流程,但一般需要包括以下内容:

  1. 提交一个预览链接(优先)或改动相关的截图
    预览链接可以通过 GitHub PagesVercel 或其他托管平台生成,便于 review 时直接查看实际效果。

    现在集成了 vercel pro trial ,会自动在每个 PR 做这个事情,但只是用于免费体验一段时间。所以后期还是需要自己提供。

  2. 文字说明一下这个改动做了什么,简单描述即可

  3. 合并时尽量采用 Squash and merge

3.. 如果有产品 & 设计的参与,在 PR 下 @ 她们的 id

如果此次改动由产品或设计师主导,请在 PR 下 @ 产品经理和设计师的 GitHub ID (如没有可 @ slack 昵称),请她们参与 review 和 feedback

@anig1scur
Copy link
Contributor Author

anig1scur commented Jul 24, 2024

推荐阅读:

如何上手一个不熟悉的前端项目?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant