-
-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
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 requestNew feature or request