code rabbit suggestion

This commit is contained in:
lelemm
2026-02-09 10:46:32 -03:00
parent f53d3c662d
commit d0c00252e3

View File

@@ -79,7 +79,10 @@ try {
'Enhancements',
'Maintenance',
];
const category = validCategories.find(cat => rawContent.includes(cat));
const lowerContent = rawContent.toLowerCase();
const category = validCategories.find(cat =>
lowerContent.includes(cat.toLowerCase()),
);
if (category) {
console.log('OpenAI categorized as:', category);
setOutput('result', category);