Repository navigation
fix(release): preserve Markdown punctuation when stamping Maven versions - #48
Merged
Merged
Conversation
Stop the version matcher at closing Markdown backticks so release preparation preserves inline punctuation. Cover unchanged and changed versions in both READMEs while preserving Gradle/XML forms and JNA. Fixes #47.
adityamukho
commented
Dec 4, 2026
adityamukho
commented
Dec 4, 2026
adityamukho
commented
Dec 4, 2026
Validate a complete Gradle installation statement in each original README before stamping, so prose coordinates cannot hide a missing or malformed snippet. Support quoted Kotlin and Groovy forms. Keep the fixed prerelease illustration outside the Maven coordinate matcher and verify it survives stable-version stamping. Cover the guard in both README paths and retain JNA and punctuation checks. Addresses the remaining review findings on #48.
adityamukho
commented
Dec 4, 2026
adityamukho
commented
Dec 4, 2026
Compare real READMEs with only installation version values masked, so editorial wording can change while all other content remains protected. Verify the requested Gradle and Maven versions independently. Report a missing Maven <version> distinctly from a missing Gradle installation coordinate. Address both latest inline notes on #48.
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.
Problem
Release preparation consumes punctuation after inline Maven coordinates, including the closing Markdown backtick and comma observed in the #46 rehearsal. Review also identified that prose could satisfy the installation-coordinate guard, and that stamping a stable release rewrote the fixed prerelease illustration.
Changes
implementationstatement in each original README before stamping. The guard supports single- and double-quoted Kotlin/Groovy forms, checks matching delimiters, and accepts optional semicolons and trailing line comments. Prose, commented-out snippets, other dependencies and malformed statements cannot satisfy it. Maven XML coordinates remain required independently.3.0.0-alpharather than a full Maven coordinate, so a stable release updates installation instructions while preserving the prerelease illustration.Closes #47.
Validation
3.0.0. It has no prose-wording anchors and still fails against the older README that reproduced the illustrative-version rewrite. The README/consumer quick-start synchronization check passes.v2.xREADMEs at047ad05a01ab0b95544bc1953c2abf9c1d0fd1f2pass the stricter guard 8000 and stamp from2.0.12to2.0.13with all other text unchanged.git diff --checkpasses. Independent review found no correctness issues.c80966e, the hosted release-fixtures job passed all 32 shared release tests and 82 Java fixture tests, including the refactored real-README guard. README synchronization also passed. The remaining platform jobs in run 47370450997 are still running.Review disposition
All five inline review findings are addressed:
Punctuation hardening: complete version tokens are matched, including dotted prerelease/build identifiers ending in hyphens (
9a2f2f6).Installation-coordinate counting: original-text validation now requires a genuine Gradle installation statement in each README (
a3ca9cc).Fixed explanatory prose: the example remains explicitly prerelease and is verified against the actual README during stable stamping (
a3ca9cc).Editorial coupling in the real-README test: compare all non-installation content without anchoring to specific sentences (
c80966e).Maven diagnostic: a missing XML version reports
missing minigraf-jvm Maven <version>(c80966e).The PR changes the stamper, its regression tests and the root README.