You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to generate multiple changelogs for different packages under a monorepo. I was hoping to have a seperate cz config file in each package, execute the changelog command in each package, and filter out the commits based on scope. It was unclear to me whether the commit parser is the way to accomplish this, and if so, how to go about it.
Apologies if I am way off track!
The text was updated successfully, but these errors were encountered:
Sorry for the delay, feel free to ask no worries.
At the moment commitizen is not able to handle a monorepo (different packages under the same repository).
It would be an interesting feature, and there's a request for it: #365
But because of time constrains we (the maintainers) are not working on it.
Going back to your question, the commit_parser is the regular expression that maps to your commit message convention.
If you have used regex, you'll know that you can set variables, by using the (?P<name_of_variable>). If you write your own regex, you should provide the variables listed here
A very basic example: you commit convention uses MAJOR, MINOR, PATCH at the beginning, so one of the variables is change_type. Your regex should include something like this:
^(?P<change_type>MAJOR|MINOR|PATCH)
Comimt examples:
PATCH: Fix security issue
MAJOR: Delete user last name
MINOR: Add new feature profile
Type
URL
https://commitizen-tools.github.io/commitizen/customization.html#custom-changelog-generator
Description
I am trying to generate multiple changelogs for different packages under a monorepo. I was hoping to have a seperate cz config file in each package, execute the changelog command in each package, and filter out the commits based on scope. It was unclear to me whether the commit parser is the way to accomplish this, and if so, how to go about it.
Apologies if I am way off track!
The text was updated successfully, but these errors were encountered: