Skip to content

Commit cf699f1

Browse files
committed
feat(commitlint-travis): add a hook for linting commits on Travis CI
1 parent 1d60455 commit cf699f1

File tree

3 files changed

+135
-1
lines changed

3 files changed

+135
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
language: node
55
entry: commitlint --edit
66
verbose: false
7+
- id: commitlint-travis
8+
name: Check commit messages on Travis CI
9+
description: Lint all relevant commits for a change or PR on Travis CI
10+
language: node
11+
entry: commitlint-travis

package-lock.json

Lines changed: 127 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
"author": "Alessandro Cuppari <[email protected]>",
88
"license": "MIT",
99
"bin": {
10-
"commitlint": "./node_modules/@commitlint/cli/lib/cli.js"
10+
"commitlint": "./node_modules/@commitlint/cli/lib/cli.js",
11+
"commitlint-travis": "./node_modules/@commitlint/travis-cli/lib/cli.js"
1112
},
1213
"dependencies": {
1314
"@commitlint/cli": "8.3.4",
15+
"@commitlint/travis-cli": "8.3.4",
1416
"core-js": "^3.6.4"
1517
}
1618
}

0 commit comments

Comments
 (0)