commitizen icon indicating copy to clipboard operation
commitizen copied to clipboard

Command that generates current configuration file

Open StageTired opened this issue 1 year ago • 2 comments

Description

Idea is to generate full current configuration file that commitizen uses right now. The expected output should be one of these files: https://commitizen-tools.github.io/commitizen/customization/#1-customize-in-configuration-file

Possible Solution

No response

Additional context

It would be easier for people to create custom configurations.

Additional context

No response

StageTired avatar Jan 06 '25 15:01 StageTired

Hi! We already have cz init, have you tried it?

I guess for custom configuration, the init could ask if the user wants to customize

woile avatar Jan 06 '25 16:01 woile

It doesn't generate any extended config sadly. I am working on a monorepo and I have run into a problem were every subpackage has all the changes added to their respective changelogs. This tutorial teaches that you need to specify a scope and changelog_pattern so that only relevant commits will be included. I wanted to slightly alter one of the default questions ([[tool.commitizen.customize.questions]]) as well as changelog_pattern so that users can specify the scope in the same predictable manner.

The thing is, I find it really difficult to do. When I create my question, it completely overrides all the default ones, and I don't want to recreate all of them myself. My pattern for changelog_pattern also doesn't exactly work.

Basically, I simply want to slightly alter existing settings.

StageTired avatar Jan 07 '25 09:01 StageTired