Support bumpVersion with prerelease semver level #15573
alanrossx2
started this conversation in
Suggest an Idea
Replies: 1 comment 1 reply
-
Thanks for your thoughtful discussion on the topic. I think this suggestion is OK and would be happy to receive a pull request for it - I do not see any downsides |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi community,
I was interested in being able to support prerelease version increments on maven dependency updates. At my current organization, we lightly comply with semver and tend to do most of our development with prerelease versions which are shared between multiple different applications. A typical update we are looking to apply could look like this:
My understanding is that the
bumpVersion
feature handles this exact task. However, it only currently supportsmajor
,minor
andpatch
increments according to the following: https://docs.renovatebot.com/configuration-options/#bumpversionMy understanding of how the bumpVersion options are set
To understand if prerelease versions could be incremented, I took a quick read of the source code and noticed the following:
renovate/lib/config/options/index.ts
Line 1221 in 982ceff
semver
dependency: https://github.com/renovatebot/renovate/blob/main/lib/modules/manager/maven/update.ts#L87Once the semver dependency is installed, the logic is straight forward for incrementing the versions:
My understanding of how prerelease version increments could be added to renovate
The latest semver dependency (used by renovate today) already supports prerelease:
In terms of actually enabling
prerelease
, I suspect we can just add it as an allowed values to the config. I did not quite understand how all the config is processed from start to end (fromrenovateOption
->globalConfig
->config.upgrades
->upgrade.bumpVersion
), but from my quick read I suspect the following change would be sufficient to enable the feature:Overall, I don't know if this is a reasonable ask, especially in terms of how it affects non maven versions. I also don't believe this is a duplicated question. Let me know your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions