Compare commits
1 Commits
0.1.44
..
2bc618dd87
| Author | SHA1 | Date | |
|---|---|---|---|
| 2bc618dd87 |
Vendored
+43
-12
File diff suppressed because one or more lines are too long
Generated
+850
-129
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -13,14 +13,14 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/core": "3.0.1",
|
||||
"conventional-commits-parser": "7.1.1"
|
||||
"conventional-commits-parser": "3.2.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/conventional-commits-parser": "5.0.2",
|
||||
"@types/node": "24.13.3",
|
||||
"@vitest/coverage-v8": "4.1.10",
|
||||
"oxfmt": "0.61.0",
|
||||
"rolldown": "1.2.1",
|
||||
"rolldown": "1.2.0",
|
||||
"typescript": "7.0.2",
|
||||
"vitest": "4.1.10"
|
||||
}
|
||||
|
||||
+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