MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / categorizeCommit

Function categorizeCommit

scripts/draft-changelog.ts:280–290  ·  view source on GitHub ↗
(subject: ParsedSubject)

Source from the content-addressed store, hash-verified

278}
279
280export function categorizeCommit(subject: ParsedSubject) {
281 if (subject.breaking) {
282 return "Breaking Changes";
283 }
284
285 if (isCatalogChange(subject)) {
286 return "Catalog";
287 }
288
289 return knownCategoryFor(subject) ?? "Other Changes";
290}
291
292function isCatalogChange(subject: ParsedSubject) {
293 const normalizedScope = subject.scope?.toLowerCase() ?? "";

Callers 1

parseCommitFunction · 0.85

Calls 2

isCatalogChangeFunction · 0.85
knownCategoryForFunction · 0.85

Tested by

no test coverage detected