Windows testing & support (hooks + docs + CI)
Summary
Ensure CommitLM works smoothly on Windows (PowerShell/CMD), including hook installation/execution, CRLF handling, and quick-start docs. Add a minimal Windows CI smoke test.
Motivation
Reducing setup friction in Windows increases adoption and contribution success.
Scope
- Detect Windows during
commitlm install-hook and install PowerShell/CMD-friendly hooks (shebang/exec bit considerations, CRLF-safe wrappers).
- Add README “Windows setup” block (PowerShell policy note, venv activation, sample workflow).
- Add GitHub Actions job (
windows-latest) that runs a smoke test: init a temp repo, install hooks, create a dummy change, run git commit, confirm docs file created.
Out of scope
WSL-specific optimizations.
Tasks
Acceptance criteria
Test plan
commitlm init && commitlm install-hook on Windows.
echo "x" > demo.txt && git add . && git commit -m "chore: test" → docs file appears under docs/.
Windows testing & support (hooks + docs + CI)
Summary
Ensure CommitLM works smoothly on Windows (PowerShell/CMD), including hook installation/execution, CRLF handling, and quick-start docs. Add a minimal Windows CI smoke test.
Motivation
Reducing setup friction in Windows increases adoption and contribution success.
Scope
commitlm install-hookand install PowerShell/CMD-friendly hooks (shebang/exec bit considerations, CRLF-safe wrappers).windows-latest) that runs a smoke test: init a temp repo, install hooks, create a dummy change, rungit commit, confirm docs file created.Out of scope
WSL-specific optimizations.
Tasks
.ps1/.cmdwrappers on Windows.git config core.autocrlfrecommendations.windowsjob to CI with the smoke test above.Acceptance criteria
Test plan
commitlm init && commitlm install-hookon Windows.echo "x" > demo.txt && git add . && git commit -m "chore: test"→ docs file appears underdocs/.