| Files | Last commit | Last update |
|---|---|---|
chore(Upgrade): guard the preset plugin shape and extract install hooks to files Two follow-ups from MR review: commitlint.config.js merged the toolkit preset's plugin rules into this repo's single inline-plugin slot via preset.plugins[0].rules. That silently degrades to {} if the toolkit ever splits its rules across several plugins or moves them off the first one — the preset rules would drop out of the overlay with no error. Surface both structural breaks now: warn when the preset does not expose exactly one plugin object, and warn when the extracted rule set comes back empty. Both warnings name the pinned toolkit version so the drift is diagnosable. preinstall and _setup:husky were two inline node -e one-liners of very different length. Extract both into scripts/ as plain readable files and point the package.json entries at them — identical behavior (warn-only submodule self-heal, pnpm version gate when the toolkit is present, hooks/template git config), with the warn texts normalized to English to match the repo's all-English posture. Smoke-tested on this checkout: the gate runs, the git config stays idempotent, and the commitlint overlay still carries the full preset rule set plus body-english. Signed-off-by: gyange <gaoyang36@huawei.com> | 1 month ago | |
chore(Upgrade): guard the preset plugin shape and extract install hooks to files Two follow-ups from MR review: commitlint.config.js merged the toolkit preset's plugin rules into this repo's single inline-plugin slot via preset.plugins[0].rules. That silently degrades to {} if the toolkit ever splits its rules across several plugins or moves them off the first one — the preset rules would drop out of the overlay with no error. Surface both structural breaks now: warn when the preset does not expose exactly one plugin object, and warn when the extracted rule set comes back empty. Both warnings name the pinned toolkit version so the drift is diagnosable. preinstall and _setup:husky were two inline node -e one-liners of very different length. Extract both into scripts/ as plain readable files and point the package.json entries at them — identical behavior (warn-only submodule self-heal, pnpm version gate when the toolkit is present, hooks/template git config), with the warn texts normalized to English to match the repo's all-English posture. Smoke-tested on this checkout: the gate runs, the git config stays idempotent, and the commitlint overlay still carries the full preset rule set plus body-english. Signed-off-by: gyange <gaoyang36@huawei.com> | 1 month ago |
| Files | Last commit | Last update |
|---|---|---|
| 1 month ago | ||
| 1 month ago |