From 36c7f33a3473b3ff30cb32fc715995de4bbfbf8d Mon Sep 17 00:00:00 2001 From: Sven Date: Mon, 23 Mar 2026 10:05:04 +0100 Subject: [PATCH] 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 --- scripts/patch-endpoint-github-changelog-categories.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/patch-endpoint-github-changelog-categories.mjs b/scripts/patch-endpoint-github-changelog-categories.mjs index efd8e6d1..053bfb44 100644 --- a/scripts/patch-endpoint-github-changelog-categories.mjs +++ b/scripts/patch-endpoint-github-changelog-categories.mjs @@ -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", };`;