CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

fix: move param() to first statement in protected-paths.ps1 #4681

Open⚡ AI-generatedXSccantynz wants to mergecopilot/fix-protected-paths-parser-errormain↑2 ↓9opened Mar 19, 20265/7 tasksLive: 0 editing
1 changed file+3−3
Modified.github/scripts/protected-paths.ps1+3−3View fileUnifiedSplit
1Set-StrictMode -Version Latest
2$ErrorActionPreference="Stop"
3
41param(
52 [string]$BaseRef = "origin/main",
63 [string]$HeadRef = "HEAD",
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