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
This commit is contained in:
程序员阿江(Relakkes) 2026-05-25 22:18:30 +08:00
parent fa7e1438e1
commit 9746a6893b

View File

@ -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` 为准。
只改了某个模块时可以用窄命令快速迭代:
| 改动范围 | 快速验证 |