Repository navigation
The version check requires a new version only when the published library changes - #38
Merged
Merged
Conversation
…ary changes Every PR had to change the version, even ones that only touch docs, tests or CI. A released version can't change, so the check now fails only when src/main or build.gradle changes while the version in gradle.properties is already on Maven Central. Several PRs can go into one unreleased version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 2, 2026
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.
The version check failed every PR that didn't change the version, including ones that only touch docs, tests or CI, such as #37. The rule that matters is that a released version can't change. So the check now:
src/main/orbuild.gradle, the files that make up the published library.gradle.propertieson Maven Central. It fails if that version is already released, and passes if it isn't, so several PRs can go into one unreleased version.The job keeps the name
CheckVersionAndReleaseNotein case branch protection requires it by name. The old check also only worked by accident: its[ -z $(...)]was missing a space before].Testing
I ran the check's script against simulated PR merge commits:
Client.javabuild.gradleClient.javagradle.propertiesRelation to other PRs
#37 changes
build.gradlewhile the version is the unreleased 4.0.1, so its check passes once this is merged and #37 is updated frommaster. Re-running its check isn't enough, because a re-run uses the workflow from #37's existing merge commit.🤖 Generated with Claude Code