Skip to content

Commit 59e51da

Browse files
authored
[releases/26.x] Enable Minor release ruleset in strict mode (#3249)
This pull request backports #3203 to releases/26.x Fixes [AB#568837](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/568837)
1 parent 60e71a4 commit 59e51da

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

build/scripts/PreCompileApp.ps1

+8-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,14 @@ if($appType -eq 'app')
5555
}
5656
}
5757

58-
if(($appBuildMode -eq 'Strict') -and !(Test-IsStrictModeEnabled)) {
59-
Write-Host "::Warning:: Strict mode is not enabled for this branch. Exiting without enabling the strict mode breaking changes check."
60-
return
58+
if($appBuildMode -eq 'Strict') {
59+
if (!(Test-IsStrictModeEnabled)) {
60+
Write-Host "::Warning:: Strict mode is not enabled for this branch. Exiting without enabling the strict mode breaking changes check."
61+
return
62+
} else {
63+
Write-Host "Enabling minor release ruleset for strict mode breaking changes check"
64+
$parameters.Value["ruleset"] = Get-RulesetPath -Name "minorrelease.ruleset.json"
65+
}
6166
}
6267

6368
Enable-BreakingChangesCheck -AppSymbolsFolder $parameters.Value["appSymbolsFolder"] -AppProjectFolder $parameters.Value["appProjectFolder"] -BuildMode $appBuildMode | Out-Null

0 commit comments

Comments
 (0)