Skip to content

Commit 60e6f3c

Browse files
committed
chore: use EasyBuild.CommitLinter instead of a custom script
1 parent bd85209 commit 60e6f3c

File tree

4 files changed

+23
-166
lines changed

4 files changed

+23
-166
lines changed

.config/dotnet-tools.json

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
"commands": [
2626
"fantomas"
2727
]
28+
},
29+
"easybuild.commitlinter": {
30+
"version": "0.1.0",
31+
"commands": [
32+
"commit-linter"
33+
]
2834
}
2935
}
3036
}

.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
#echo 'Husky.Net is awesome!'
2121

2222
# bash .husky/scripts/commit-linter.sh
23-
dotnet fsi ".husky/scripts/commit-linter.fsx" "$1"
23+
dotnet commit-linter -c commit-linter.json "$1"

.husky/scripts/commit-linter.fsx

-165
This file was deleted.

commit-linter.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"types": [
3+
{ "name": "feat", "description": "A new feature", "skipTagLine": false },
4+
{ "name": "fix", "description": "A bug fix", "skipTagLine": false },
5+
{ "name": "docs", "description": "Documentation changes", "skipTagLine": false },
6+
{ "name": "test", "description": "Adding missing tests or correcting existing tests", "skipTagLine": false },
7+
{ "name": "style", "description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)", "skipTagLine": false },
8+
{ "name": "refactor", "description": "A code change that neither fixes a bug nor adds a feature", "skipTagLine": false },
9+
{ "name": "ci", "description": "Changes to CI/CD configuration" },
10+
{ "name": "chore", "description": "Changes to the build process or auxiliary tools and libraries such as documentation generation" }
11+
],
12+
"tags": [
13+
"cli",
14+
"converter"
15+
]
16+
}

0 commit comments

Comments
 (0)