conventional-changelog/commitlint

`@commitlint/prompt-cli` does not abide the rules in `commitlint.config.js`

クローズ

#2,899 opened on 2021/12/04

 (2 件のコメント) (1 件のリアクション) (0 人の担当者)TypeScript (896 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (15,497 個のスター)
PR merge metrics
 (平均マージ 12h 56m) (30d で 52 merged PRs)

説明

I have set 'body-leading-blank': [2, 'always'] in commitlint.config.js, but when I create a commit with body using npx commit, it does not inserts a blank line before the body. When I run npx commitlint on that commit message, it correctly raises body must have leading blank line error.

Expected Behavior

Format the message according to the rules.

Current Behavior

commitlint/prompt-cli fails to create a commit message according to the rules.

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Steps to Reproduce (for bugs)

  1. First step
  2. Second step

Context

Your Environment

Executable Version
commitlint --version 15.0.0
git --version 2.31.1
node --version 17.0.1
@commitlint/prompt-cli 15.0.0

コントリビューターガイド