Skip to content

Commit 7458fc0

Browse files
root: ci: Update husky to root
1 parent e062913 commit 7458fc0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/lint-commit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
uses: actions/setup-node@v4
1414
with:
1515
node-version: '20'
16+
cache: "npm"
17+
cache-dependency-path: package-lock.json
1618
- name: Install dependencies
1719
run: npm ci
1820
- name: Lint commit messages

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
if (!header) {
77
return [false, 'Commit message header must not be empty'];
88
}
9-
if (/ \:/.test(header)) {
9+
if (/ :/.test(header)) {
1010
return [false, 'There should be no space before ":"'];
1111
}
1212
const parts = header.split(':').map(p => p.trim());

0 commit comments

Comments
 (0)