Skip to content

Command that generates current configuration file #1331

Open
@StageTired

Description

@StageTired

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

Activity

woile

woile commented on Jan 6, 2025

@woile
Member

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

StageTired

StageTired commented on Jan 7, 2025

@StageTired
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Command that generates current configuration file · Issue #1331 · commitizen-tools/commitizen