ietf-tools / semver-action

GitHub Action to calculate the next release version based on conventional commits
BSD 3-Clause "New" or "Revised" License
56 stars 22 forks source link

Feature request: Patch if invalid - noVersionBumpBehavior #41

Closed g-otn closed 9 months ago

g-otn commented 9 months ago

Hello, thank you for this great GitHub action!

I'd like to hear your opinion on a new option: I want the action to create a patch version if no commit resulted in a version bump since last the release.

For example,

So instead of:

Run ietf-tools/semver-action@v1
Comparing against latest tag: 1.0.0
[INVALID] Skipping commit aaa as it doesn't follow conventional commit format.
...
[INVALID] Skipping commit bbb as it doesn't follow conventional commit format.
Error: No commit resulted in a version bump since last release!

Do:

Run ietf-tools/semver-action@v1
Comparing against latest tag: 1.0.0
[INVALID] Skipping commit aaa as it doesn't follow conventional commit format.
...
[INVALID] Skipping commit bbb as it doesn't follow conventional commit format.
[PATCH]: No commit resulted in a version bump since last release! This will cause a patch version bump.

It'd be like a new patch option to the noVersionBumpBehavior config.

What are your thoughts?

NGPixel commented 9 months ago

Added in v1.7.0