Skip to content

Commit b1203db

Browse files
authored
Add a special judge for Az.Accounts when bump version (#12357)
* Add a special judge for Az.Accounts when bump version
1 parent 979391e commit b1203db

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
@@ -171,6 +171,15 @@ private string GetBumpedVersion()
171171
{
172172
versionBump = Version.MINOR;
173173
}
174+
// for https://github.com/Azure/azure-powershell/pull/12356
175+
// 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
176+
// So we add a special judge for it when the version is 1.9.x and the expect bump type is minor,
177+
// 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
178+
// this special judge will not works anymore.
179+
if (splitVersion[0] == 1 && splitVersion[1] == 9 && versionBump == Version.MINOR)
180+
{
181+
versionBump = Version.PATCH;
182+
}
174183
}
175184

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

0 commit comments

Comments
 (0)