ci(hooks): добавить commit-msg и шаблон Conventional Commits
quality / commitlint (push) Skipped
CD / update-wiki (push) Successful in 6s
quality / changes (push) Successful in 4s
quality / docker-check (push) Skipped
quality / web (push) Successful in 57s
quality / api (push) Successful in 41s
CD / quality (push) Successful in 1m46s
CD / publish (push) Successful in 11m48s

Без type/scope semantic-release не ставил тег и пропускал bake.
This commit is contained in:
Denozordec
2026-09-04 13:43:48 +07:00
parent dd3c378b5f
commit 64e6df8703
8 changed files with 120 additions and 25 deletions
+33 -6
View File
@@ -8,17 +8,44 @@ module.exports = {
if (scope && scope.includes(',')) {
return [
false,
'scope must not contain commas (semantic-release will not parse the commit type)'
'scope must not contain commas (semantic-release will not parse the commit type)',
];
}
return [true];
}
}
}
},
/** Subject after «:» must contain Cyrillic (project convention). */
'subject-cyrillic': ({ subject }) => {
if (!subject) return [true];
if (/[а-яёА-ЯЁ]/.test(subject)) return [true];
return [
false,
'subject after «:» must be in Russian (Cyrillic), e.g. feat(web): добавить экран нод',
];
},
},
},
],
rules: {
// Subject после «:» на русском — не английский sentence-case.
'subject-case': [0],
'scope-no-commas': [2, 'always']
}
'scope-no-commas': [2, 'always'],
'subject-cyrillic': [2, 'always'],
'type-enum': [
2,
'always',
[
'feat',
'fix',
'perf',
'ci',
'refactor',
'docs',
'chore',
'test',
'style',
'build',
'revert',
],
],
},
};