Open trianta2 opened 6 years ago
Perhaps a better name for first_value
would be default_value
.
You can control the first release_name by using --new-version
.
First value is the value the part is assigned after a reset not after a bump. A reset happens when you bump any preceding part, that is, bumping minor would cause patch and release_name to be reseted. Also remember that by default the first entry in the values list is treated as an optional value. Since your release_name part is optional (optional regex and alternative serialize) version 0.3.9 is understood by bumpversion as 0.3.9-foo. So bumping release_name will cause foo to increase to bar. Which is the result you get. If you bump patch in 0.3.9 the result should be 0.3.10-foo.
The documentation would benefit from more examples.
This is my first time using
bumpversion
and I can't get a release_name bump to be the first value in a list. My goal is to usebumpversion release_name
to go from d.d.d to d.d.d-foo.Here's my config:
Here's what a dry run looks like:
first_value
doesn't seem to have any affect.