Zhengqbbb / cz-git

cz-git | czg 🛠️ DX first and more engineered, lightweight, customizable, standard output format Commitizen adapter and CLI
https://cz-git.qbb.sh
MIT License
1.12k stars 41 forks source link

[Feature Request] a config for `body-leading-blank` in commitlint #52

Closed tui95 closed 2 years ago

tui95 commented 2 years ago

💭 Describe the feature

Is it possible to add a config for body-leading-blank option in commitlint?

💡 Proposed Solution

By setting an option bodyLeadingBlank to true in a config file, a new line will be added between commit subject and body.

Zhengqbbb commented 2 years ago

Could u can provide a demo: like

chore: update config

- eslint config
- vscode config
tui95 commented 2 years ago

What I meant was I'd like a feature where when set in config, will add a new line between the commit subject and commit body automatically.

Sorry. I don't have any config

Could u can provide a demo: like

chore: update config

- eslint config
- vscode config

since I use this library via the command line.

Zhengqbbb commented 2 years ago

Sorry if you misunderstood me, it's actually an example msg lol 😂 like 🤔

chore: update config

- eslint config
- vscode config

mean there r double new line?

tui95 commented 2 years ago

Oh, I see. I'd like only a single new line like the one in the conventional commits example.

Zhengqbbb commented 2 years ago
image
Zhengqbbb commented 2 years ago

Currently, there will be blank lines !!! I thought this option was an extra line lol 😂 Just try it!

If there is a problem, take a screenshot and I will fix it

tui95 commented 2 years ago

Sorry. It already works. I misunderstood with the commit display in the github UI

Zhengqbbb commented 2 years ago

What makes you misunderstood, you can say it directly and I will see how to improve 😎

tui95 commented 2 years ago

It's my misunderstanding about github UI that's not related to this tool