feat: read v-prefixed tags and keep their prefix on the next tag - #93
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #58.
semvertag now reads lowercase-
vSemVer tags (v1.2.0) as bump baselines alongside bare ones, and the new tag inherits the latest tag's prefix: afterv1.2.0comesv1.3.0, after1.2.0comes1.3.0. A repo whose history is entirelyv-prefixed no longer reportsno_tagsforever.Decisions (from the triage grilling on #58):
vbut always emitting bare would fixno_tagsand break everyv*-triggered release workflow instead. A force-prefix setting can be added if a real need shows up.vonly.V1.2.0,release-1.2.0and the floatingv0are still not candidates.v0never parses, so this repo keeps emitting bare release tags andjust publishis unaffected.vwins exact ties. The highest version wins regardless of prefix. A tie such as1.2.0andv1.2.0almost always means a repo re-tagged while moving tov, sovis the direction of travel.schema_versionstays"1.0"and no status token changes. Thetagfield and the Action'stagoutput can now carryv1.3.0; only their descriptions change.vsentence recorded a deferral and would contradict the code. The PEP 440 rejection beside it still stands.CONTEXT.mdupdates Latest tag, adds Tag prefix (bare "prefix" belongs to thebranch-prefixstrategy), and narrows Release tag to this repo's own convention.Upgrade note (behaviour change): a repo that followed the old docs and seeded a bare
0.1.0next to avhistory (v1.4.0, ...) now bumps from the highervtag and jumps tov1.5.0. Both provider guides call this out next to the seeding guidance.Also updated: the
no_tagsreason and Rich message (seed0.1.0, orv0.1.0forvtags), README,docs/index.md, both provider guides, and thetagoutput description inaction.ymland the GitHub guide.Out of scope: a
no_tagsdiagnostic for histories where tags exist but none parse (filed separately).Tests go through
SemvertagUseCase.__call__with the stub provider:vinheritance, mixed history, the tie in both input orders, avprerelease finalizing (v1.0.0-rc.1+ patch tov1.0.0), unrecognized tag forms, and AlreadyTagged on avtag. Withvstripping removed, every new test involving avtag fails.Verified with
just lint-ci,just test-ci(493 passed, 100% coverage),just adr-checkandjust docs-build.