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 (/^perf[:(]/i.test(title)) return "performance";
|
||||||
if (/^a11y[:(]/i.test(title)) return "accessibility";
|
if (/^a11y[:(]/i.test(title)) return "accessibility";
|
||||||
if (/^docs[:(]/i.test(title)) return "documentation";
|
if (/^docs[:(]/i.test(title)) return "documentation";
|
||||||
|
if (/^chore[:(]/i.test(title)) return "chores";
|
||||||
|
if (/^refactor[:(]/i.test(title)) return "refactor";
|
||||||
return "other";
|
return "other";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,6 +49,8 @@ const CATEGORY_LABELS = {
|
|||||||
performance: "Performance",
|
performance: "Performance",
|
||||||
accessibility: "Accessibility",
|
accessibility: "Accessibility",
|
||||||
documentation: "Documentation",
|
documentation: "Documentation",
|
||||||
|
chores: "Chores",
|
||||||
|
refactor: "Refactor",
|
||||||
other: "Other",
|
other: "Other",
|
||||||
};`;
|
};`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user