Compare commits
3 Commits
0.1.43
..
eb950aec70
| Author | SHA1 | Date | |
|---|---|---|---|
| eb950aec70 | |||
| 691f6247ed | |||
| a4f52386ba |
Vendored
+12
-43
File diff suppressed because one or more lines are too long
Generated
+171
-954
File diff suppressed because it is too large
Load Diff
+3
-3
@@ -13,14 +13,14 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/core": "3.0.1",
|
||||
"conventional-commits-parser": "3.2.4"
|
||||
"conventional-commits-parser": "7.1.2"
|
||||
},
|
||||
"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",
|
||||
"oxfmt": "0.62.0",
|
||||
"rolldown": "1.2.2",
|
||||
"typescript": "7.0.2",
|
||||
"vitest": "4.1.10"
|
||||
}
|
||||
|
||||
+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 {
|
||||
|
||||
+2
-1
@@ -16,7 +16,8 @@
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"exactOptionalPropertyTypes": true,
|
||||
"noImplicitOverride": true
|
||||
"noImplicitOverride": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
|
||||
|
||||
Reference in New Issue
Block a user