diff --git a/src/getCommitMeaning.ts b/src/getCommitMeaning.ts index c1d14898..3e250b46 100644 --- a/src/getCommitMeaning.ts +++ b/src/getCommitMeaning.ts @@ -9,10 +9,10 @@ const releaseCommitTester = export function getCommitMeaning(message: string) { // Some types are always meaningful or ignored, regardless of potentially release-like messages + // options from https://github.com/conventional-changelog/conventional-changelog/issues/648#issuecomment-704867077 const { notes, type } = conventionalCommitsParser.sync(message, { - // @ts-expect-error - options from https://github.com/conventional-changelog/conventional-changelog/issues/648#issuecomment-704867077 breakingHeaderPattern: /^(\w*)(?:\((.*)\))?!: (.*)$/, - }); + } as object); if (notes.some((note) => note.title.match(/^BREAKING[ -]CHANGE$/))) { return "meaningful"; }