-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call a command before committing #208
Comments
@getzze This is unlikely to get any priority, as the focus of bump-my-version is not a workflow tool. However, since you already know the version increment (major/minor/patch/etc.) ahead of time, you can start with a call to When you finally make your last call to |
Thanks for the reply and the workaround!
I will try to send a PR when I have time.
…On 8 July 2024 14:58:42 GMT+01:00, Corey Oordt ***@***.***> wrote:
@getzze This is unlikely to get any priority, as the focus of bump-my-version is not a workflow tool.
However, since you already know the version increment (major/minor/patch/etc.) ahead of time, you can start with a call to `bump-my-version show -i <incr part> new_version` and get the version from `stdout`.
When you finally make your last call to `bump-my-version bump` make sure you either add `--allow-dirty` or set the `allow_dirty` configuration option to `True`
--
Reply to this email directly or view it on GitHub:
#208 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Version 0.26.0 should have what you need. |
Hi, thanks for adding this feature! I will try it out. |
Thanks for the great package!
I would like to use the tool with
towncrier
, my workflow is:towncrier
It could be done with a
command
option (for CLI and config file), passing environment variables{version}
and{old_version}
.The command would be called before commit, and do not commit if the command returns an error. It could even revert the version if command fails, so it would work with the
pre-commit
package.The text was updated successfully, but these errors were encountered: