fix: import
This commit is contained in:
+4
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user