chore [P-137]: test

This commit is contained in:
Nukeap committed 2025-02-06 09:03:23 +03:00
1 parent adbce6c5a7
commit 476a4679b0
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(process.argv);
if (commitMessage) { if (commitMessage) {
// Проверяем, содержит ли сообщение коммита определенные ключевые слова // Проверяем, содержит ли сообщение коммита определенные ключевые слова
const isPatch = /^(fix|chore)/.test(commitMessage); // Например, если тип "fix" или "chore" const isPatch = /^(fix|chore)/.test(commitMessage); // Например, если тип "fix" или "chore"