fixup error message

This commit is contained in:
Dmitriy 2024-06-09 22:08:38 -04:00
parent c82ffece5f
commit dcae5115e7

View File

@ -46,7 +46,7 @@ Terminology: [bug(ui)]: Fix female trainer names
// Check if title pass regex // Check if title pass regex
const regex = RegExp(/^\[[a-zA-Z]+(\([a-zA-Z]+\))?\]: .+/); const regex = RegExp(/^\[[a-zA-Z]+(\([a-zA-Z]+\))?\]: .+/);
if (!regex.test(title)) { if (!regex.test(title)) {
core.setFailed(`Pull Request title "${title}" failed to match - 'Prefix(Scope): Subject'`); core.setFailed(`Pull Request title "${title}" failed to match - '[Prefix(Scope)]: Subject'`);
return; return;
} }