Skip to content

Commit

Permalink
Merge pull request #16 from Web3-Plurality/7-add-pre-commit-in-plural…
Browse files Browse the repository at this point in the history
…ity-repconnect-demo-to-make-sure-commit-message-patterns-match-the-semantic-release-pattern

feat: add husky with conventional commit
  • Loading branch information
mujtabaidrees94 authored Jan 3, 2024
2 parents 9f943b7 + 3b560dd commit 0ba1d7d
Show file tree
Hide file tree
Showing 4 changed files with 841 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
7 changes: 7 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// Disable the body-max-line-length rule
'body-max-line-length': [0]
},
};
Loading

0 comments on commit 0ba1d7d

Please sign in to comment.