Repository navigation
docs(repo): add contribution and review guidelines - #5
Merged
Merged
Conversation
Author
|
Ingrid Larsen · reviewer Does the template match the headings we use in pull request descriptions? 模板和我们在拉取请求说明里用的标题一致吗? |
Author
|
Mateo Rossi · author Yes: 一致: |
Author
|
Noah Williams · reviewer Why wrap the browser-check block in a subshell instead of copying the CI step? 浏览器检查那段为什么要放进子 shell,而不是直接照搬 CI 的步骤? |
Author
|
Mateo Rossi · author With 把 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Contributors need to know how to name branches and commits, which checks to run before opening a pull request, and who reviews which part of the repository.
What changed
CONTRIBUTING.mdandCONTRIBUTING.zh-CN.md:<type>/<topic>branch names,type(scope): summarycommit subjects, the local checks (pnpm install --frozen-lockfile,lint,typecheck,test,build, Chromium install), a Bash block that runspnpm test:e2ewith a bridge and fake gates and cleans them up, an image build check, and the review and merge rules.CODEOWNERS: the simulator code, scripts, data and Compose files go to the simulator owners; tests, e2e, Playwright config and screenshots to Noah Williams;compose.lab.yamlto Yuki Tanaka and Noah Williams;.github/,renovate.jsonandCODEOWNERSto Ingrid Larsen..github/pull_request_template.mdwith the English and Chinese headings used for pull request descriptions.How to verify
Read both guides side by side and check that the commands in them exist:
The list should include
lint,typecheck,test,buildandtest:e2e.背景
贡献者需要知道分支和提交怎么命名、发起拉取请求前要跑哪些检查,以及仓库各部分由谁评审。
改动
CONTRIBUTING.md和CONTRIBUTING.zh-CN.md:分支名用<type>/<topic>,提交标题用type(scope): summary;列出本地检查(pnpm install --frozen-lockfile、lint、typecheck、test、build、安装 Chromium);给出一段 Bash 代码,配合 bridge 和假闸机运行pnpm test:e2e并在结束后清理;说明镜像构建检查以及评审与合并规则。CODEOWNERS:模拟器代码、脚本、数据和 Compose 文件归模拟器负责人;测试、e2e、Playwright 配置和截图归 Noah Williams;compose.lab.yaml归 Yuki Tanaka 和 Noah Williams;.github/、renovate.json和CODEOWNERS本身归 Ingrid Larsen。.github/pull_request_template.md,包含拉取请求说明所用的中英文标题。怎么验证
对照阅读中英文两份指南,并确认其中的命令都存在:
输出应包含
lint、typecheck、test、build和test:e2e。