From 9746a6893b989a08b9c64e83ed3a33292dd68bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E9=98=BF=E6=B1=9F=28Relakkes?= =?UTF-8?q?=29?= Date: Mon, 25 May 2026 22:18:30 +0800 Subject: [PATCH] docs: restore pre-push gate note The root contributor guide was simplified without keeping the documented fast pre-push entrypoint, while the quality contract test still requires all contributor docs to name it. Restore the compact note so the policy lane and contributor guidance match again. Constraint: scripts/pr/quality-contract.test.ts asserts root CONTRIBUTING.md documents bun run quality:push Rejected: Relaxing the contract test | documentation drift was the cause, not an obsolete policy Confidence: high Scope-risk: narrow Tested: bun test scripts/pr/quality-contract.test.ts Tested: bun run check:policy --- CONTRIBUTING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0f7a3e6a..ecad68db 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,6 +10,8 @@ bun run verify `bun run verify` 会一键检查 policy、desktop、server、adapters、native、docs、quarantine 和 coverage。非 0 退出就说明当前分支还不能提交 PR。 +已安装本地 hook 的仓库在 `git push` 前会自动运行快速门禁 `bun run quality:push`;它复用 PR 门禁但默认跳过耗时的 coverage lane,完整覆盖率仍以 `bun run verify` 为准。 + 只改了某个模块时可以用窄命令快速迭代: | 改动范围 | 快速验证 |