-
Notifications
You must be signed in to change notification settings - Fork 654
#1355 Fix develop branch config in mainline mode #1371
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
#1355 Fix develop branch config in mainline mode #1371
Conversation
@asbjornu can you review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the issue this PR solves? Can you please provide a description in the first comment of the pull reuqest (edit it)?
@@ -109,7 +109,7 @@ public static void ApplyDefaultsTo(Config config) | |||
new List<string>(), | |||
defaultTag: "alpha", | |||
defaultIncrementStrategy: IncrementStrategy.Minor, | |||
defaultVersioningMode: VersioningMode.ContinuousDeployment, | |||
defaultVersioningMode: config.VersioningMode == VersioningMode.Mainline? VersioningMode.Mainline : VersioningMode.ContinuousDeployment, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't defaultVersioningMode
always be set to config.VersioningMode
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because documentation says that the develop branch is set to ContinuousDeployment mode by default. And all tests require develop branch in ContiniousDeployment mode. But in mainline mode we get wrong behaviour.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, that makes sense.
Can you please do a rebase of this branch on top of the latest |
Done. |
Excellent, thanks! |
Issue #1355 .
Develop branch is always set in the ContinuousDeployment mode in config and even when we use the Mainline mode. Consequently, we can not get the expected version in the develop branch.
If we try to override branch mode in config, we get an error: "Mainline mode only works at the repository level, a single branch cannot be put into mainline mode..."
By default, all other branches inherit the global mode.