Skip to content

Environment variable BVHOOK_NEW_TAG not working in pre-commit #388

@stianpram

Description

@stianpram

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions