Skip to content

pre releases optionally start with a non-zero value #613

Closed
@ckagerer

Description

@ckagerer

Description

I am C developer in microcontroller environment. So far I always used my own scripts/tools to increment version numbers and manually updated the changelog (if I didn't forget ;)).

I have been successfully using commitizen for my utilities in Phython for a few months now and would like to use that for embedded projects as well. But I currently have a problem that prevents me from using it. In our company the version is stored as four bytes in the embedded devices. MAJOR.MINOR[.BUGFIX][bBETA]. The BUGFIX and BETA digits are optional and are filled with zero if these digits should not be displayed by our ServiceTool.
With the BUGFIX everything still works perfectly (example: 0.3.0 -> 0.3.1 ✓).
However, with a PRERELEASE there is a conflict with our encoding (example: 0.3.0 -> 0.3.1b0 ⨯).
The only thing I would need to be able to use this great tool there would be an offset setting for prereleases so that the above example becomes this: 0.3.0 -> 0.3.1b1 ✓.

Possible Solution

My proposed solution see PR #614 .
=> The introduction of a configuration for the offset. With this one can easily reconfigure the deviating behavior depending on the project.

Additional context

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions