Skip to content

BUG: Breaking Change message can't be pushed #2379

Closed
@dalisoft

Description

@dalisoft

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)

  1. Install commitlint and configuration

  2. Try echo -e 'BREAKING CHANGE: baz' | yarn commitlint command

  3. First step

  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions