Skip to content

[prompt-cli] Unable to type subject #2439

@k3nsei

Description

@k3nsei

Expected Behavior

I should be able to type subject

Current Behavior

When typing subject input is ignored

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Probably minLength and maxLength validation is blocking user input

Steps to Reproduce (for bugs)

  1. npx commit
  2. type chore as type
  3. type :skip as scope
  4. try to type anything
v1 of commitlint.config.js ```js module.exports = { extends: ['@commitlint/config-conventional'], rules: { 'scope-empty': [0, 'always'], 'scope-case': [2, 'always', ['lower-case', 'pascal-case']], 'subject-min-length': [2, 'always', 3], 'subject-max-length': [2, 'always', 100], }, }; ```
v2 of commitlint.config.js ```js module.exports = { extends: ['@commitlint/config-conventional'], rules: { 'scope-empty': [0, 'always'], 'scope-case': [2, 'always', ['lower-case', 'pascal-case']], 'subject-max-length': [2, 'always', 100], }, }; ```

Context

I can't compose commit message

Your Environment

Executable Version
commitlint --version 11.0.0
git --version 2.29.2.windows.2
node --version 14.15.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions