Skip to content

Commit 407ece7

Browse files
chenlei-yanglitchiyangMSFT
authored andcommitted
Add a special judge for Az.Accounts when bump version (Azure#12357)
* Add a special judge for Az.Accounts when bump version
1 parent 5e16434 commit 407ece7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tools/VersionController/Models/VersionBumper.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ private string GetBumpedVersion()
126126
{
127127
versionBump = Version.MINOR;
128128
}
129+
// for https://github.com/Azure/azure-powershell/pull/12356
130+
// Because of the wrong compare script in the link above, we need to avoid the minor bump when the version of Az.Accounts is 1.9.x
131+
// So we add a special judge for it when the version is 1.9.x and the expect bump type is minor,
132+
// we will change the type to patch so that it can work until 1.9.9.Once the version is greater or equal than 2.0.0
133+
// this special judge will not works anymore.
134+
if (splitVersion[0] == 1 && splitVersion[1] == 9 && versionBump == Version.MINOR)
135+
{
136+
versionBump = Version.PATCH;
137+
}
129138
}
130139

131140
// PATCH update for preview modules (0.x.x or x.x.x-preview)

0 commit comments

Comments
 (0)