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

fix(cmd-version): fix tag format on default version when force bump for initial release #1138

Conversation

codejedi365
Copy link
Contributor

@codejedi365 codejedi365 commented Jan 11, 2025

Purpose

Rationale

Ended up the tag format was not applied to the default version value of 0.0.0 when calculating a forced version bump. Now we use the translator to properly use the consumers tag format to translate the raw version into a tag, then parse back out the version to make a Version object. In this manner, now the version object has the tag format passed along from the translator upon initialization.

How did you test?

I added an additional repository that was completely unreleased and had a tag format applied. This mirror the issue the user had in the reported issue. Then used that repository with the end-to-end tests related to force bumping a version.

@codejedi365 codejedi365 self-assigned this Jan 11, 2025
@codejedi365 codejedi365 force-pushed the fix/tag-format-on-default-version-forced-bump branch 2 times, most recently from 035f145 to fc67d2a Compare January 11, 2025 08:43
@codejedi365 codejedi365 force-pushed the fix/tag-format-on-default-version-forced-bump branch from fc67d2a to b7ab2bd Compare January 11, 2025 08:55
@codejedi365 codejedi365 merged commit 007fd00 into python-semantic-release:master Jan 11, 2025
12 checks passed
@codejedi365 codejedi365 deleted the fix/tag-format-on-default-version-forced-bump branch January 11, 2025 09:06
@codejedi365
Copy link
Contributor Author

🎉 This PR has been published as part of Version 9.16.0 🎉

You can find more information about this release on the GitHub Releases page.

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.

Configured tag_format is ignored if there are no tags in the repository
1 participant