Skip to content

Commit

Permalink
chore: add commitlint (#32)
Browse files Browse the repository at this point in the history
* chore: add commitlint

* chore: change test name
  • Loading branch information
marianfoo authored Jan 28, 2024
1 parent 06c690e commit 7f8f074
Show file tree
Hide file tree
Showing 5 changed files with 574 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
test-wdi5:
test:
runs-on: ubuntu-latest
if: "github.event.pull_request.title != 'chore: release main'"
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

npx --no -- commitlint --edit ""
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"devold": "ts-node ./test/server.ts",
"prepublish": "tsc",
"watch": "tsc -w",
"test": "pnpm --filter http-test test"
"test": "pnpm --filter http-test test",
"prepare": "husky install && chmod ug+x .husky/*"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -42,10 +43,13 @@
"express": ">=4"
},
"devDependencies": {
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@sap/cds": ">=5.7.5",
"@types/body-parser": "^1.19.2",
"@types/express": "^4.17.13",
"express": "^4.17.2",
"husky": "^9.0.0",
"sqlite3": "^5.0.2",
"ts-node": "^10.4.0",
"typescript": "^4.5.4"
Expand Down
Loading

0 comments on commit 7f8f074

Please sign in to comment.