Skip to content

fix: exclamation mark not accepted by @commitlint/config-conventionalΒ #4191

Open
@tiagoporto

Description

@tiagoporto

Steps to Reproduce

  1. Create a breaking commit using exclamation mark, like feat!: awesome feature.
  2. Try to push

// package.json
"devDependencies": {
  "@commitlint/cli": "^19.5.0",
  "@commitlint/config-conventional": "^19.5.0",
}
// .commitlintrc
{
  "extends": [
    "@commitlint/config-conventional"
  ]
}

Output error

β§—   input: feat!: awesome feature
βœ–   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

Current Behavior

feat!: awesome feature commit fail using @commitlint/config-conventional.

Expected Behavior

feat!: awesome feature commit should be accepted using @commitlint/config-conventional.

Affected packages

  • cli
  • core
  • prompt
  • config-angular
  • @commitlint/config-conventional

Possible Solution

No response

Context

No response

commitlint --version

19.5.0

git --version

2.39.3

node --version

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