commitizen icon indicating copy to clipboard operation
commitizen copied to clipboard

version store strategy: "VERSION" file

Open ebuildy opened this issue 4 years ago • 1 comments

Description

Some projects use a simple VERSION file to store version, instead of the commiziten YAML file.

Possible Solution

Add an option version_strategy: file

Additional context

Many projects use VERSION file with makefile.

ebuildy avatar Dec 14 '21 20:12 ebuildy

I believe version_files can solve it.

sample config

[tool.commitizen]
......
version_files = ['VERSION']

Lee-W avatar Dec 15 '21 01:12 Lee-W

You can build your own custom-version-provider plugin to support this.

If you do release a plugin, feel free to add it to third party packages section 🙏🏻

woile avatar Apr 28 '23 13:04 woile