We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e062913 commit 7458fc0Copy full SHA for 7458fc0
.github/workflows/lint-commit.yml
@@ -13,6 +13,8 @@ jobs:
13
uses: actions/setup-node@v4
14
with:
15
node-version: '20'
16
+ cache: "npm"
17
+ cache-dependency-path: package-lock.json
18
- name: Install dependencies
19
run: npm ci
20
- name: Lint commit messages
commitlint.config.js
@@ -6,7 +6,7 @@ module.exports = {
6
if (!header) {
7
return [false, 'Commit message header must not be empty'];
8
}
9
- if (/ \:/.test(header)) {
+ if (/ :/.test(header)) {
10
return [false, 'There should be no space before ":"'];
11
12
const parts = header.split(':').map(p => p.trim());
0 commit comments