Skip to content

Commit 7e6111f

Browse files
committed
ci: fix commitlint
1 parent 7eab09c commit 7e6111f

File tree

6 files changed

+21
-23
lines changed

6 files changed

+21
-23
lines changed

.github/workflows/commitlint.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Lint Commit Messages
2+
on: [pull_request]
3+
4+
permissions:
5+
contents: read
6+
pull-requests: read
7+
8+
jobs:
9+
commitlint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: wagoid/commitlint-github-action@v6

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,5 @@ lib/
140140

141141
# others
142142
experiments
143-
.tmp
143+
.tmp
144+
.idea

.husky/commit-msg

-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
bunx commitlint --edit $1
5-

.husky/prepare-commit-msg

-4
This file was deleted.

bun.lockb

-12.5 KB
Binary file not shown.

package.json

+6-14
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,15 @@
55
"workspaces": ["{packages,plugins,apps,tools}/**"],
66
"devDependencies": {
77
"@biomejs/biome": "1.7.3",
8-
"@types/bun": "^1.1.1",
9-
"git-cz": "^4.9.0",
8+
"@commitlint/cli": "^19.3.0",
9+
"@commitlint/config-conventional": "^19.2.2",
10+
"@commitlint/prompt-cli": "^19.3.1",
11+
"@types/bun": "^1.1.2",
1012
"husky": "^9.0.11",
1113
"typescript": "^5.4.5"
1214
},
1315
"scripts": {
14-
"prepare": "husky"
15-
},
16-
"dependencies": {
17-
"@commitlint/cli": "^19.3.0",
18-
"@commitlint/config-conventional": "^19.2.2",
19-
"commitizen": "^4.3.0",
20-
"cz-conventional-changelog": "^3.3.0"
21-
},
22-
"config": {
23-
"commitizen": {
24-
"path": "./node_modules/cz-conventional-changelog"
25-
}
16+
"prepare": "husky",
17+
"commit": "commit"
2618
}
2719
}

0 commit comments

Comments
 (0)