MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / checkFromHistory

Function checkFromHistory

@commitlint/cli/src/cli.ts:448–456  ·  view source on GitHub ↗
(flags: CliFlags)

Source from the content-addressed store, hash-verified

446}
447
448function checkFromHistory(flags: CliFlags): boolean {
449 return (
450 typeof flags.from === "string" ||
451 typeof flags["from-last-tag"] === "boolean" ||
452 typeof flags.to === "string" ||
453 typeof flags.last === "boolean" ||
454 Boolean(flags.path?.some(Boolean))
455 );
456}
457
458function normalizeFlags(flags: CliFlags): CliFlags {
459 const edit = getEditValue(flags);

Callers 1

checkFromRepositoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected