From 8eafdcceafa2d2e5eb6fb3d8c5d8dce205333787 Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Wed, 9 Sep 2026 15:00:23 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=B0=E5=A2=9E=20CONTRIBUTING=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=A1=E6=81=AF=E9=A3=8E=E6=A0=BC=E7=BA=A6?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CONTRIBUTING.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..e424cb8f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,23 @@ +# 贡献指南 + +## 提交信息风格 + +所有 commit 消息遵循统一格式: + +``` +type: 中文描述 +``` + +- type 限定:`feat` / `fix` / `perf` / `refactor` / `test` / `chore` / `docs` / `style` / `revert` +- 不带 scope +- 描述写"改了什么、为什么",不写实现步骤 +- 不引用内部编号、任务号或平台特定信息 +- 合并提交使用 git 默认格式(`Merge ...`) + +示例: + +``` +feat: Temporal.PlainTime round 舍入(真因子校验 + 跨午夜取模) +fix: 闭包链式捕获越界改编译错误早暴露防静默错值 +perf: 字符串拼接消除冗余拷贝 +```