Closed
Description
Expected Behavior
echo -e 'BREAKING CHANGE: baz' | yarn commitlint
yarn run v1.22.10
$ /Users/dalisoft/Desktop/Open_Source/nanoexpress/core/pro-slim/node_modules/.bin/commitlint
✨ Done in 0.50s.
Current Behavior
❯ echo -e 'BREAKING CHANGE: baz' | yarn commitlint
yarn run v1.22.10
$ /Users/dalisoft/Desktop/Open_Source/nanoexpress/core/pro-slim/node_modules/.bin/commitlint
⧗ input: BREAKING CHANGE: baz
✖ subject may not be empty [subject-empty]
✖ type may not be empty [type-empty]
✖ found 2 problems, 0 warnings
ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
It's not solution, a like workaround, using any of valid enum before breaking change.
❯ echo -e 'fix(pkg): foo bar\n\nBREAKING CHANGE: baz' | yarn commitlint
yarn run v1.22.10
$ /Users/dalisoft/Desktop/Open_Source/nanoexpress/core/pro-slim/node_modules/.bin/commitlint
✨ Done in 0.50s.
Steps to Reproduce (for bugs)
-
Install
commitlint
and configuration -
Try
echo -e 'BREAKING CHANGE: baz' | yarn commitlint
command -
First step
-
Second step
commitlint.config.js
{
"extends": [
"airlight"
]
}
Context
Your Environment
Executable | Version |
---|---|
commitlint --version |
@commitlint/cli@11.0.0 |
git --version |
2.29.2 |
node --version |
v15.5.0 |