Generalise README version bumping to any library - #28
Merged
Conversation
Fold the README install snippets into the two existing project.scala custom managers instead of a commons-specific one, and teach both the sbt coordinate syntax: - manager 1 (cross-built): scala-cli `org::name[:]:ver` and sbt `"org" %% "name" % "ver"` - manager 2 (plain Maven): scala-cli `org:name:ver` and sbt `"org" % "name" % "ver"` Any dependency shown in a README install block is now tracked, which also makes the synced renovate.json useful in the downstream repos where the snippet names a different artifact. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019awuXm5QZgXajLw3PvGo1s
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.
Follow-up to #26. The README manager was hardcoded to
com.halotukozak:commons. Make it work for any library named in a README install snippet.Change
Drop the commons-specific manager and fold README into the two existing
project.scalacustom managers, adding sbt coordinate syntax to each:_3,sbt-package)org::name[:]:ver"org" %% "name" % "ver"maven)org:name:ver"org" % "name" % "ver"Verified against the current files: both README snippet lines resolve to the single dep
com.halotukozak:commons_3→ one grouped PR;project.scalamatching is unchanged (munit, scala3-compiler); the two managers never match the same line.This also makes the synced
renovate.jsonuseful inmade/mcodec/mrpc/regex, where the README snippet names a different artifact.🤖 Generated with Claude Code