Skip to content

Add version-increment option to increment-version-with-git #27

@0nary

Description

@0nary

Is your feature request related to a problem? Please describe.
Sometime for some reasons (most of time bad reasons), we don't want to follow the pattern you propose for determines the increment of the version.

Describe the solution you'd like
Add the same option (--version-increment) as in increment-version command to the increment-version-with-git command.

Describe alternatives you've considered
An other and maybe better option is to allow user to override your switch to make it match they desiderata.

return type.ToLower() switch
{
    "feat" => VersionIncrement.Minor,
    "fix" => VersionIncrement.Patch,
    "build" => VersionIncrement.Patch,
    "config" => VersionIncrement.Patch,
    "docs" => VersionIncrement.Patch,
    "perf" => VersionIncrement.Patch,
    "refactor" => VersionIncrement.Patch,
    "resolve" => VersionIncrement.Patch,
    "style" => VersionIncrement.Patch,
    "test" => VersionIncrement.Patch,
    "ci" => VersionIncrement.Patch,
    _ => VersionIncrement.Unknown
};

Also include #breaking.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions