-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor next version calculator (get rid of taggedSemanticVersion
)
#3244
Refactor next version calculator (get rid of taggedSemanticVersion
)
#3244
Commits on Feb 19, 2023
-
Fix CanTakePreReleaseVersionFromReleasesBranchWithNumericPreReleaseTa…
…g test Because release branch has 'beta' prefix configured.
Configuration menu - View commit details
-
Copy full SHA for c31abe3 - Browse repository at this point
Copy the full SHA c31abe3View commit details -
Rearrange actions in the UpdatePreReleaseTag method
To improve readability.
Configuration menu - View commit details
-
Copy full SHA for e151052 - Browse repository at this point
Copy the full SHA e151052View commit details -
Rename UpdatePreReleaseTag variables
To make the method logic more understandable.
Configuration menu - View commit details
-
Copy full SHA for 67e6722 - Browse repository at this point
Copy the full SHA 67e6722View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26d9ac3 - Browse repository at this point
Copy the full SHA 26d9ac3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3442d5a - Browse repository at this point
Copy the full SHA 3442d5aView commit details -
Calculate semver BuildMetaData if versioning mode is not mainline
Because `this.mainlineVersionCalculator.FindMainlineModeVersion(nextVersion.BaseVersion)` method calculates BuildMetaData on its own.
Configuration menu - View commit details
-
Copy full SHA for 4828d78 - Browse repository at this point
Copy the full SHA 4828d78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 15efee0 - Browse repository at this point
Copy the full SHA 15efee0View commit details -
Get rid of taggedSemanticVersion approach
Change next version calculator to act according to the next algorithm: 1. Calculate next version candidate based on the base one 2. Look for the latest `PreReleaseTag` matching Major, Minor and Patch of the next version candidate. 3. Append the `PreReleaseTag`, if found, to the next version candidate. 4. Compare the next version candidate with `Context.CurrentCommitTaggedVersion` including the `PreReleaseTag` comparison. 5. Increment the `PreReleaseTag` of the next version candidate if versions mismatch. 6. Return the next version candidate.
Configuration menu - View commit details
-
Copy full SHA for fb0be83 - Browse repository at this point
Copy the full SHA fb0be83View commit details -
Configuration menu - View commit details
-
Copy full SHA for 471d1e0 - Browse repository at this point
Copy the full SHA 471d1e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1bd3a9 - Browse repository at this point
Copy the full SHA e1bd3a9View commit details -
Change SemanticVersion's PreReleaseTag and BuildMetaData to a non-nul…
…lable type Because they are always set in SemanticVersion's constructor. They can be null only if explicitly set by the client of the class and there are plans to forbid this functionality.
Configuration menu - View commit details
-
Copy full SHA for 5767382 - Browse repository at this point
Copy the full SHA 5767382View commit details