파싱 로직 보정: BUILD 타입 인식 기능 추가 (v0.4.0.1)
This commit is contained in:
parent
8037f2b8cc
commit
9531418010
@ -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];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user