feat(changelog): add chore and refactor commit categories

The patch now recognises chore: and refactor: commit prefixes as their
own categories instead of lumping them into "other".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sven
2026-03-23 10:05:04 +01:00
parent bc73558641
commit 36c7f33a34

View File

@@ -38,6 +38,8 @@ const newCategorize = `function categorizeCommit(title) {
if (/^perf[:(]/i.test(title)) return "performance";
if (/^a11y[:(]/i.test(title)) return "accessibility";
if (/^docs[:(]/i.test(title)) return "documentation";
if (/^chore[:(]/i.test(title)) return "chores";
if (/^refactor[:(]/i.test(title)) return "refactor";
return "other";
}
@@ -47,6 +49,8 @@ const CATEGORY_LABELS = {
performance: "Performance",
accessibility: "Accessibility",
documentation: "Documentation",
chores: "Chores",
refactor: "Refactor",
other: "Other",
};`;