Bug
\scripts/Sync-Files.ps1\ calls \Invoke-GitHubAPI\ with -Endpoint:
\\powershell
Invoke-GitHubAPI -Method GET -Endpoint "/repos/.../pulls" ...
\\
The current PSModule/GitHub module has this parameter named -ApiEndpoint, not -Endpoint. PowerShell cannot resolve -Endpoint\ as a prefix abbreviation of -ApiEndpoint, so this throws at runtime:
A parameter cannot be found that matches parameter name 'Endpoint'
Fix options
- Update this script to use -ApiEndpoint\ (immediate fix)
- Wait for PSModule/GitHub #653 which adds -Endpoint\ as an alias (restores backward compat)
Affected lines
Three calls in \scripts/Sync-Files.ps1\ — the PR list GET, the PR create POST, and the label POST.
Bug
\scripts/Sync-Files.ps1\ calls \Invoke-GitHubAPI\ with -Endpoint:
\\powershell
Invoke-GitHubAPI -Method GET -Endpoint "/repos/.../pulls" ...
\\
The current PSModule/GitHub module has this parameter named -ApiEndpoint, not -Endpoint. PowerShell cannot resolve -Endpoint\ as a prefix abbreviation of -ApiEndpoint, so this throws at runtime:
Fix options
Affected lines
Three calls in \scripts/Sync-Files.ps1\ — the PR list GET, the PR create POST, and the label POST.