Open kenibrewer opened 1 month ago
Mmm interesting, the allowed_prefixes
are the default ones, but they are indeed not even read by gitmojify. I usually set up gitlab/github to use a gitmojified commit message for merges and I rarely ever merge locally, so haven't come across this.
One possible solution would be fetching the set of allowed commits messages from the commitizen configuration and allowing them.
I think this is what should happen. At some point this package should provide some configuration options too, so then we would need to hook into the commitizen config in any case.
The approach that seems both a bit easier to implement and potentially more on theme with gitmojify would be automatically correct these non-conventional commits into gitmojified commits.
I'm not a huge fan of that tbh, right now gitmojify just adds the corresponding emoji and doesn't alter the message in any other way, auto converting the message itself to be conventional compliant is not really in scope for this lib.
When I find some time I'll look into your first suggestion. In the meantime, PRs are always welcome! :)
When merging changes from a main branch into feature branch as follows:
This error occurs:
This behavior is different from commitizen which includes "Merge" commits in its list of ignored commits. See docs.
One possible solution would be fetching the set of allowed commits messages from the commitizen configuration and allowing them. That seems pretty complicated though.
The approach that seems both a bit easier to implement and potentially more on theme with
gitmojify
would be automatically correct these non-conventional commits into gitmojified commits. The one downside to that approach is that would potentially mean that these low-information commits might get added to the changelog when previously they weren't.