파싱 로직 보정: BUILD 타입 인식 기능 추가 (v0.4.0.1)

This commit is contained in:
choibk 2026-01-25 01:57:24 +09:00
parent 8037f2b8cc
commit 9531418010

View File

@ -506,11 +506,12 @@ router.get('/version/remote', isAuthenticated, hasRole('admin'), async (req, res
let type = 'patch'; let type = 'patch';
let title = subject || ''; let title = subject || '';
const typeMatch = (subject || '').match(/^\[(URGENT|FEATURE|FIX|PATCH|HOTFIX)\]\s*(.*)$/i); const typeMatch = (subject || '').match(/^\[(URGENT|FEATURE|FIX|PATCH|HOTFIX|BUILD)\]\s*(.*)$/i);
if (typeMatch) { if (typeMatch) {
const rawType = typeMatch[1].toUpperCase(); const rawType = typeMatch[1].toUpperCase();
if (rawType === 'URGENT' || rawType === 'HOTFIX') type = 'urgent'; if (rawType === 'URGENT' || rawType === 'HOTFIX') type = 'urgent';
else if (rawType === 'FEATURE') type = 'feature'; else if (rawType === 'FEATURE') type = 'feature';
else if (rawType === 'BUILD') type = 'patch';
else type = 'fix'; else type = 'fix';
title = typeMatch[2]; title = typeMatch[2];
} }