diff --git a/.github/actions/ai-generated-release-notes/determine-category.js b/.github/actions/ai-generated-release-notes/determine-category.js index fce5af5d5e..f35bf52e5d 100755 --- a/.github/actions/ai-generated-release-notes/determine-category.js +++ b/.github/actions/ai-generated-release-notes/determine-category.js @@ -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);