Add bump-snapshot mise task to automate version bumps#1875
Open
zeitlinger wants to merge 2 commits intomainfrom
Open
Add bump-snapshot mise task to automate version bumps#1875zeitlinger wants to merge 2 commits intomainfrom
zeitlinger wants to merge 2 commits intomainfrom
Conversation
d9d1832 to
2608f95
Compare
After a release, the snapshot version must be updated across ~57 files. This was previously a manual find-and-replace. The new `mise run bump-snapshot` task automates it by extracting the current version from the parent pom.xml and replacing it everywhere via git grep. Also makes set-version.sh and build-release.sh dynamic so they no longer hard-code the snapshot version. Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
01929e7 to
b1f7ee0
Compare
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.
Summary
mise run bump-snapshottask that automates post-release snapshotversion bumps across all
pom.xmlfilesset-version.shandbuild-release.shdynamic — they now extractthe current version from
prometheus-metrics-parent/pom.xmlinstead ofhard-coding it
RELEASING.mdto reference the new task instead of manualfind-and-replace instructions
Test plan
mise tasks | grep bump-snapshotshows the taskmise run bump-snapshotand confirm allpom.xmlfiles are updatedmise run build-releasewith no arguments and confirm itpicks up the current snapshot version
mise run set-version 1.5.0and confirm it replaces thecurrent snapshot version dynamically