conventional-changelog/commitlint

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

已關閉

#2,899 建立於 2021年12月4日

 (2 則留言) (1 個反應) (0 位負責人)TypeScript (896 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (15,497 顆星)
PR 合併指標
 (平均合併 12小時 56分鐘) (30 天內合併 52 個 PR)

描述

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

貢獻者指南