Closed
Description
Expected Behavior
it should run commitmsg properly
Current Behavior
it throws an error
/Users/sibelius/Dev/app/app/app/node_modules/@commitlint/cli/lib/help.js:34
return `${fs.join(',')}${' '.repeat(4 + longest - length)}${desc}${ds}`;
^
RangeError: Invalid count value
at String.repeat (<anonymous>)
at /Users/sibelius/Dev/app/app/app/node_modules/@commitlint/cli/lib/help.js:34:32
at Array.map (<anonymous>)
at module.exports (/Users/sibelius/Dev/app/app/app/node_modules/@commitlint/cli/lib/help.js:23:15)
at Object.<anonymous> (/Users/sibelius/Dev/app/app/app/node_modules/@commitlint/cli/lib/cli.js:55:76)
at Module._compile (internal/modules/cjs/loader.js:707:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
at Module.load (internal/modules/cjs/loader.js:605:32)
at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
at Function.Module._load (internal/modules/cjs/loader.js:536:3)
husky > commit-msg hook failed (add --no-verify to bypass)
I'm using simple-git
to perform this commit:
import git from 'simple-git/promise';
await git().commit(`build(change-log): ${tag}`);
Affected packages
- cli
- core
- prompt
- config-angular
Steps to Reproduce (for bugs)
- await git().commit(
build(change-log): ${tag}
);
commitlint.config.js
```js module.exports = { rules: { 'body-leading-blank': [1, 'always'], 'footer-leading-blank': [1, 'always'], 'header-max-length': [2, 'always', 100], 'scope-case': [2, 'always', 'lower-case'], 'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']], 'subject-empty': [2, 'never'], 'subject-full-stop': [2, 'never', '.'], 'type-case': [2, 'always', 'lower-case'], 'type-empty': [2, 'never'], 'type-enum': [ 2, 'always', [ 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', 'migration', 'type', ], ], }, }; ```Context
Your Environment
I'm using nvm
(0.31.1)
macosx
"@commitlint/cli": "7.2.1",
"@commitlint/config-conventional": "7.1.2",
git version 2.19.1
hub version 2.5.1
node v10.12.0
Metadata
Metadata
Assignees
Labels
No labels