Fix PowerShell param() ordering in protected-paths.ps1 #4676
1 changed file+3−3
Modified.github/scripts/protected-paths.ps1+3−3View fileUnifiedSplit
@@ -1,6 +1,3 @@
1Set-StrictMode -Version Latest
2$ErrorActionPreference="Stop"
3
41param(
52 [string]$BaseRef = "origin/main",
63 [string]$HeadRef = "HEAD",
@@ -9,6 +6,9 @@ param(
96 [string]$PrLabels = ""
107)
118
9Set-StrictMode -Version Latest
10$ErrorActionPreference="Stop"
11
1212function Fail([string]$m){ Write-Host $m -ForegroundColor Red; exit 1 }
1313function Info([string]$m){ Write-Host $m -ForegroundColor Cyan }
1414
1515
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts