| ci(format): fast prettier gate + pre-commit hook to catch formatting before CI Two layers so an unformatted file is caught before it can turn CI red: - Automated Tests workflow: a fast (~20s) prettier preflight runs on every non-draft PR and gates test/format/generated via needs:, so a formatting slip short-circuits them instead of burning the full matrix. The pull_request '**/*.md' paths-ignore is dropped so docs markdown is always checked; heavy jobs still skip docs-only PRs via a changes filter (mirrors the startos-iso.yaml idiom). Fixes the gap where docs-only PRs skipped the format job entirely. - Repo-root husky v9 + lint-staged pre-commit hook auto-formats staged files with the pinned prettier before they land; no-ops when node_modules is absent (fresh worktrees), so CI stays the source of truth. Promotes the hoisted husky 4.3.8 -> 9.1.7 and lint-staged 13.3.0 -> 15.5.2. | 2 个月前 |