Skip to content

Add option to refuse to generate a version if the changelog would be empty #43

Open
@carlosschults

Description

@carlosschults

I've got a question about one specific behavior of this utility. During my tests, I noticed that whenever I run the command, a new tag is generated and the changelog is updated. This happens even when there are no new commits since the last tag, or when there are commits whose types are different than "feat" or "fix".

My question is: is this the expected behavior, or a bug? In case this is the expected behavior, is it possible to change it via some configuration option? For my use case, I need that nothing happens when there are no additional commits or there are commits marked as "chore", "style", etc.

I tried using the .versionrc file, but the closer I got to what I want is for certain types of commits to not be added to the changelog. However, the changelog entry itself is still created, even if it's empty.

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