Trying to use the environment variable BVHOOK_NEW_TAG as described in Hooks, when setting:
pre_commit_hooks = ["echo \"$BVHOOK_NEW_TAG\" > CHANGELOG.md"]
under [tool.bumpversion] in the TOML, the result is just a blank file.
Using BVHOOK_NEW_VERSION, however:
pre_commit_hooks = ["echo \"$BVHOOK_NEW_VERSION\" > CHANGELOG.md"]
works.
Trying to use the environment variable
BVHOOK_NEW_TAGas described in Hooks, when setting:pre_commit_hooks = ["echo \"$BVHOOK_NEW_TAG\" > CHANGELOG.md"]under
[tool.bumpversion]in the TOML, the result is just a blank file.Using
BVHOOK_NEW_VERSION, however:pre_commit_hooks = ["echo \"$BVHOOK_NEW_VERSION\" > CHANGELOG.md"]works.