chore [P-137]: test

This commit is contained in:
Nukeap committed 2025-02-06 09:02:48 +03:00
1 parent 5a2d4d12fe
commit adbce6c5a7
1 file changed
+1 -1
+1 -1
View File
@@ -1,7 +1,7 @@
import { execSync } from 'child_process'; import { execSync } from 'child_process';
const commitMessage = process.argv[2]; const commitMessage = process.argv[2];
console.log(commitMessage); console.log('commitMessage');
if (commitMessage) { if (commitMessage) {
// Проверяем, содержит ли сообщение коммита определенные ключевые слова // Проверяем, содержит ли сообщение коммита определенные ключевые слова
const isPatch = /^(fix|chore)/.test(commitMessage); // Например, если тип "fix" или "chore" const isPatch = /^(fix|chore)/.test(commitMessage); // Например, если тип "fix" или "chore"