Open hongjiaherng opened 2 months ago
Two things::
show
command. bump-my-version show --increment minor new_version
. The show
command is a legacy command that displays configuration information and allows one to show specific keys.Hey @coordt, appreciate the prompt reply!
I can achieve what I'm trying to do with the provided command. Would you deprecate the legacy command in a very near future? If this ever get deprecated, this is my current workaround:
bump-my-version show-bump --ascii | grep $RELEASE_TYPE | awk '{print $NF}' # $RELEASE_TYPE is either 'major', 'minor', or 'patch'
For 2, I'm willing to contribute if you need another helping hand on this. Anyway, this is not a very rushed requirement on my project too.
@hongjiaherng FYI my PR last year provided that exact functionality (show the next number for specific type): https://github.com/callowayproject/bump-my-version/pull/88
Description
None
What I Did
Here's the current CLI options for
show-bump
inbump-my-version
.Is it possible to add a new option for specifying the exact bump type? For example:
It would be helpful for using it in CI as I don't want to have a actual file like
__init__.py
to track the version (no new commit in main branch after bumping version is created/needed).So the following is what I hope to achieve:
Or even better, allow
bump-my-version
to create new tag without writing to a file. Then this can be achieved: