Compare commits
1 Commits
main
..
0ca79acd52
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ca79acd52 |
Vendored
+2
-3
File diff suppressed because one or more lines are too long
+2
-4
@@ -1,5 +1,5 @@
|
||||
import * as core from "@actions/core";
|
||||
import { CommitParser } from "conventional-commits-parser";
|
||||
import * as ccp from "conventional-commits-parser";
|
||||
import type { Commit } from "conventional-commits-parser";
|
||||
import { execSync } from "child_process";
|
||||
|
||||
@@ -30,10 +30,8 @@ export interface CoreService {
|
||||
}
|
||||
|
||||
export class ConventionalCommitAnalyzer {
|
||||
private commitParser = new CommitParser();
|
||||
|
||||
analyzeCommit(message: string): Commit {
|
||||
return this.commitParser.parse(message);
|
||||
return ccp.sync(message);
|
||||
}
|
||||
|
||||
determineIncrementType(analyzedCommit: Commit): IncrementType {
|
||||
|
||||
+1
-2
@@ -16,8 +16,7 @@
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"exactOptionalPropertyTypes": true,
|
||||
"noImplicitOverride": true,
|
||||
"types": ["node"]
|
||||
"noImplicitOverride": true
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
|
||||
|
||||
Reference in New Issue
Block a user