Skip to content

Commit

Permalink
refactor: replace @ts-expect-error
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Goldberg ✨ <[email protected]>
  • Loading branch information
hyoban and JoshuaKGoldberg authored Feb 17, 2024
1 parent 9b74215 commit d5a9dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/getCommitMeaning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit d5a9dda

Please sign in to comment.