Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command that generates current configuration file #1331

Open
StageTired opened this issue Jan 6, 2025 · 2 comments
Open

Command that generates current configuration file #1331

StageTired opened this issue Jan 6, 2025 · 2 comments

Comments

@StageTired
Copy link

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

@woile
Copy link
Member

woile commented Jan 6, 2025

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
Copy link
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
Projects
None yet
Development

No branches or pull requests

2 participants