New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Custom formatter #57
Comments
Hi, Thank you for your attention ❤️️ Maybe custom options
|
But need to provide format message option I need to think about it over the weekend 🤔 Anyway u can try this way, See if it solves your problem, just tell me ~ 🤗 |
I appreciate the answer, this solves the issue; with the tradeoff being losing the search capabilities (my current cz search selects ✨ when typing 'feat'). Found that solution, but seemed like a hack, so I figured I should open the issue. I will wait for the search update to try again, with this solved I'll move my setup to using cz-git. |
I will do it in weekend~
current:
next version:
|
add `typesSearchValueKey` option default types list fuzzy search types `value` options. if choose `false` will search `name` options link #57
add `formatMessageCB` option that is a callback function provide use custom finally commit message link #57 Co-authored-by: Zhengqbbb <1074059947@qq.com>
add `Co-authored-by` after footer link #57 Co-authored-by: Zhengqbbb <1074059947@qq.com>
link #57 Co-authored-by: Zhengqbbb <1074059947@qq.com>
link #57 Co-authored-by: Zhengqbbb <1074059947@qq.com>
@thlmenezes There are two way can realize u issue request:
types: [
{value: '✨', name: '✨ feat: A new feature'},
...
],
typesSearchValueKey: false
formatMessageCB: ({ emoji, scope, subject }) => {
return scope
? `${emoji}(${scope}): ${subject}`
: `${emoji} ${subject}`
} please have a try. 💪 |
Will test the new release this week for sure and provide feedback |
Thank youuuuuu, it works like a charm; the issue can be closed now. Made the change today from my old dependency and hope to provide more feedback in the future 😄 |
💭 Describe the feature
I've been using commitizen-emoji for a while now, and found this library as a way to remove duplicated configs between commitzen and commitlint.
But, currently I see you only support the angular output; and with no clear way, in my testing, to replace or omit the type output.
the commit format I'm targeting is as follows:
<gitmoji>(<scope>): <subject>
scope being optional
Compared to Default Angular Commits
<type>(<scope>): <subject>
Currently with cz-git I've managed to create commits like
But I'm aiming for something like
💡 Proposed Solution
Enable users to customize their formatter with:
conventionalFormat
with defaulttrue
, to enable the user to opt out of angular commit styleExample:
formatTitle.ts
Example usage
I believe there's some work to do on field type....type (ts typing) and fine-tuning, but I'm open to help in the conversation
The text was updated successfully, but these errors were encountered: