Skip to content

Make parts of a new version available for [[before commit]] commands #109

@gdubicki

Description

@gdubicki

Hi! Thanks for another nice tool, @dmerejkowsky ! :)

I started to use it for GitLabForm but I run into a limitation, at least from my use case point of view.

I am trying to follow PEP 440. When I make pre-releases or post-releases I often don't add new changelog entries for them.

For example when I release v.2.2.0rc2 for a small beta-testers group testing, the changelog mentions only 2.2.0, because 2.2.0.rc2 is just another try to make final 2.2.0 version right.

For post-released like 2.0.6.post4 there is also often no changelog entry as it's not a functionally different release.

Because of that I would like to be able to use major, minor and patch numbers of the new version for the [[before commit]] commands.

For example like this:

grep -q -P "^### {major}\.{minor}\.{patch}$" CHANGELOG.md

Or maybe it is possible and I just don't know how to do it..?

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