From b4fd80c720d69b5084d989e86e5c6b715577b745 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Thu, 6 Aug 2026 18:39:51 +0200 Subject: [PATCH] fix: import --- src/main.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 863b55a..025ca13 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,5 @@ import * as core from "@actions/core"; -import * as ccp from "conventional-commits-parser"; +import { CommitParser } from "conventional-commits-parser"; import type { Commit } from "conventional-commits-parser"; import { execSync } from "child_process"; @@ -30,8 +30,10 @@ export interface CoreService { } export class ConventionalCommitAnalyzer { + private commitParser = new CommitParser(); + analyzeCommit(message: string): Commit { - return ccp.sync(message); + return this.commitParser.parse(message); } determineIncrementType(analyzedCommit: Commit): IncrementType {