@fatso83/check-commit-msg
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -23,3 +23,3 @@ /* eslint-disable no-console */ | ||
if (!commitMsg.match(/^[a-zA-Z]{2,4}-\d{1,5} /)) { | ||
if (!commitMsg.match(/^[a-zA-Z]{2,6}-\d{1,5} /)) { | ||
errors.push( | ||
@@ -26,0 +26,0 @@ 'Commit messages should be prefixed with the github issue number, i.e. "GH-637 Update design of ListView"' |
{ | ||
"name": "@fatso83/check-commit-msg", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"bin": "./cli.js", | ||
@@ -5,0 +5,0 @@ "description": "Check if your commit message follows Chris Beam's \"Seven rules of a good commit message\"", |
@@ -22,5 +22,6 @@ # @fatso83/check-commit-msg | ||
npm install -g @fatso83/check-commit-msg | ||
echo > .git/hooks/commit-msg << EOF | ||
echo << 'EOF' > .git/hooks/commit-msg | ||
check-commit-msg $1 | ||
EOF | ||
chmod +x .git/hooks/commit-msg #make it executable | ||
``` | ||
@@ -27,0 +28,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5978
40