Replies: 2 comments 4 replies
|
PR #1983 is related because it changes how commit messages are parsed: In All three options from above remain possible, with option 3 remaining my preference. |
0 replies
|
This is related to #1385 With this, you will be able to define exactly what you want on each Minor correction: monorepo -> 1 repository with many apps. polyrepo -> many repos with apps. |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Currently, the regular expression specified for
bump_patternmatches the commit message line-by-line. In this way, you can have a commit message where multiple lines match thebump_pattern.I have a monorepo (code repository with multiple applications), where I want
cz bumpto filter commit messages based on a custom pattern. At the moment,cz bumpuses all commit messages (i.e., it includes commit messages that do not affect the application that I want to bump). In my monorepo, this is not desired because in this waycz bumpconsiders commit messages which are not relevant to the application I want to bump.In contrast, changelog generation already works for polyrepos with multiple applications:
changelog_patterncan match whole commit messages instead of single line, so it is possible to filter out commit messages which are not relevant to the application for which a changelog shall be generated.I would like to contribute a Pull Request that supports my use case above, but I want to use this discussion here first to find out the best way to go forward.
Options that I see:
Change
bump_patternso that full commit messages are analyzed.I think this is not feasible because it would break current behavior. In this option, special considerations need to be applied to ensure the current behavior of having more than one entry from
bump_mapremains effective.Filter commit messages with
changelog_patternfirst and only bump usingbump_patternfor remaining commits.In order to not break current behavior, this new behavior could be enabled with a new config option
bump_based_on_changelog_pattern(suggestions for name welcome).Filter commit messages with a new pattern first and only bump using
bump_patternfor remaining commits.This is similar to the previous option, except that the existing option
changelog_patternwould not be reused, but instead a new config option for the pattern would be created. A name could bebump_commit_filter_pattern(suggestions welcome). The default value would be a pattern that matches all commit messages, which is unchanged from current behavior.My preference currently are option 2 and option 3. I lean towards option 3 because I think the new behavior warrants a new config name (
changelog_patternis not directly related to bumping).Please let me know your thoughts. I would like to see them because I start implementing into a certain direction.
Thank you 🙂
Edit: Changed incorrect wording polyrepo to monorepo in title and body.
All reactions