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

Global Configuration #597

Closed
liblaf opened this issue Oct 1, 2022 · 5 comments
Closed

Global Configuration #597

liblaf opened this issue Oct 1, 2022 · 5 comments
Labels

Comments

@liblaf
Copy link

liblaf commented Oct 1, 2022

Description

It would be nice to support global configuration, say ~/.cz.yaml, to reduce the trouble of creating custom commitizen for each project.

Possible Solution

Append Path.home() to cfg_search_paths in commitizen/config/__init__.py.

Additional context

No response

Additional context

No response

@liblaf liblaf added the type: feature A new enhacement proposal label Oct 1, 2022
@liblaf
Copy link
Author

liblaf commented Oct 1, 2022

41d3510

@Lee-W
Copy link
Member

Lee-W commented Oct 7, 2022

This is something we remove since v2.0.0. I'm not sure whether we're to adding it back. I'm a bit against it. @woile What do you think?

@jlanzarotta
Copy link

Having a global configuration would be fantastic. We have 100s of projects and creating a configuration for each project is a MAJOR pain.

@woile
Copy link
Member

woile commented May 11, 2023

I'm also against having a global configuration. Not only adds more work for maintainers (people confused as of way their projects behaves in weird ways). But, I believe projects should have all the required info to work in the project itself. It might be a burden, but you are gonna need to tell every developer to install commitizen globally and configure it properly. And nothing prevents some automation to add the file to every project or a cookie cutter like tool.
That being said, nothing prevents you from writing a custom cz-rule that reads from a global conf file.

You could have a GlobalConventionalCommits, and replace the source of the values:

https://github.com/commitizen-tools/commitizen/blob/master/commitizen/cz/base.py#L45

It could also be published to pypi and added to the third party section

@Lee-W
Copy link
Member

Lee-W commented May 20, 2024

It looks like we've already concluded that we won't implement it. Close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants