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.13k stars 41 forks source link

fix(cz-git): incorrect maxSubjectLength on custom scope #173

Closed thansetan closed 5 months ago

thansetan commented 5 months ago

Related ISSUE

None

Type Of Change

Clear Describe

Fix incorrect maxSubjectLength when using a custom commit scope.

Description

Previously, when using a custom commit scope, the length of ___CUSTOM___ was used to calculate the maxSubjectLength instead of the length of the custom scope itself.

netlify[bot] commented 5 months ago

Deploy Preview for cz-git ready!

Name Link
Latest commit 039f825c771c6f2882e18d0496892fe2d6508a21
Latest deploy log https://app.netlify.com/sites/cz-git/deploys/6651cc1e7c3c07000851d1d2
Deploy Preview https://deploy-preview-173--cz-git.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Zhengqbbb commented 5 months ago

Oh !!!. Thanks for your contribution, I will review it in the weekend.

Zhengqbbb commented 5 months ago

@thansetan
LFG bro! I have merged into the main branch and released the 1.9.2-beta.1 pre-release version for testing. You can use the following commands for testing. If there are any issues, please point them out. I plan to release 1.9.2 tomorrow. Thank you for your contribution.

npx or bunx

npx -y czg@next -v
npx -y czg@next

# or
npm install -g czg@next
czg -v
czg
Zhengqbbb commented 5 months ago

The latest version 🌟(v1.9.2)🌟 should be resolve this issue request , please have a try. 💪 👀 Let me know if there are still any issues. 🎉