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:
@@ -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",
|
||||
};`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user