-
My question is about that guy in bold: 1.0.1-PR .0 .1+test Major: 1 Is there a reason why if I use the defaultPreRelease override it keep adding the I know the technical reason, it's hardcoded that way here: Line 19 in 38b456c But is there another reason? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
Hi, please read https://github.com/adamralph/minver#how-it-works — it's all explained there. |
Beta Was this translation helpful? Give feedback.
-
I read it and it still not explain the "0" behavior ... it says |
Beta Was this translation helpful? Give feedback.
-
The E.g. your commits might be versioned as follows:
Side note: you may want to consider using something other than "PR" as your pre-release phase. It's easily confused with "pull request". When I first saw it, I thought that's what it meant. |
Beta Was this translation helpful? Give feedback.
-
💯 agree on side note! :') Oh I just understood by re-reading you how-to's that you consider As Thanks! Happy holidays! |
Beta Was this translation helpful? Give feedback.
-
Great, thanks! You too! |
Beta Was this translation helpful? Give feedback.
-
I was also confused by this, and the docs do not explain the concept of "phase". When I read the above explanation - which due to the example format, is extremely helpful - it all made sense. It would be good for future readers if it were incorporated somehow into the docs. Thanks for the excellent example. |
Beta Was this translation helpful? Give feedback.
The
0
is the pre-release "number". That is, you don't want to be restricted to a single pre-release, since it's likely you will want a 1st pre-release (1.0.1.PR.1
), a 2nd pre-release (1.0.1.PR.2
) etc. The "0th" pre-release is not one that you will release. It's just a way of versioning the interim builds between an RTM and your next pre-release.E.g. your commits might be versioned as follows:
0.0.0.PR.0
(root commit)0.0.0.PR.0.1
0.0.0.PR.0.2
1.0.0.PR.1
(tagged and released)1.0.0.PR.1.1
1.0.0.PR.1.2
1.0.0.PR.2
(tagged and released)1.0.0.PR.2.1
1.0.0.PR.2.2
1.0.0
(tagged and released)1.0.1.PR.0.1
<-- this is the version you are currently seeing1.0.1.PR.0.2
1.0.1.PR.1
(tagged and rele…