Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor: Allow commit messages to bump to 1.0.0 #205

Merged
merged 5 commits into from
Nov 24, 2024
Merged

minor: Allow commit messages to bump to 1.0.0 #205

merged 5 commits into from
Nov 24, 2024

Conversation

ajoberstar
Copy link
Owner

As reported in #204, I had unfortunately forced the preference to not allow commit messages to bump to v1 on all users of commit message scope calculators. In theory, I had meant to allow custom parsing, but
the custom parsing still enforced the pre-1.0 special casing.

The new approach implements a new ofCommitMessageParser() mechanism that has the parsing function accept both the commit message and a boolean indicating whether the project is pre-v1.0.0. This allows the user full control of the approach they want to use.

To simplify adoption of this new capability the default commit message parser was enhanced to allow "major!: subject" prefixes that bypass the pre-1.0.0 check, allowing a more CD style bump to 1.0.0.

As reported in #204, I had unfortunately forced the preference to not
allow commit messages to bump to v1 on all users of commit message
scope calculators. In theory, I had meant to allow custom parsing, but
the custom parsing still enforced the pre-1.0 special casing.

The new approach implements a new ofCommitMessageParser() mechanism
that has the parsing function accept both the commit message and a
boolean indicating whether the project is pre-v1.0.0. This allows the
user full control of the approach they want to use.

To simplify adoption of this new capability the default commit message
parser was enhanced to allow "major!: subject" prefixes that bypass
the pre-1.0.0 check, allowing a more CD style bump to 1.0.0.

Fixes #204
Set git config on test repos to avoid signing commits and tags.
@ajoberstar ajoberstar merged commit de2d6b4 into main Nov 24, 2024
1 check passed
@ajoberstar ajoberstar deleted the fixes branch November 24, 2024 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant