leoforfree / cz-customizable

A standalone commit message helper or customizable commitizen adapter for https://github.com/commitizen/cz-cli
MIT License
610 stars 201 forks source link

Option to reorder Scope before Type #100

Open DennisL68 opened 5 years ago

DennisL68 commented 5 years ago

For some reason I always try to enter Scope first. So I'd like an option to swap the order of the questions presented.

leonardoanalista commented 5 years ago

It feels like I implemented something like this already. Let me look...

leonardoanalista commented 5 years ago

no, not yet. I wrote something like "ask for breaking change first"

DennisL68 commented 5 years ago

Ok, looking forward to this as new feature :)

rewathkafley commented 4 years ago

You can write your own adapter for this by referring this link as example.

kjvelarde commented 4 years ago

Maybe a schema / pattern based approach would be a good idea here.

schema = "<type>: <body>"
schema_pattern = "(feature|bug fix):(\\s.*)"

e.g: https://commitizen-tools.github.io/commitizen/customization/