Skip to content

Commit 9451038

Browse files
authored
Proper websession usage
1 parent 62042a3 commit 9451038

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/Get-PRHistory.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ if ($ApiKey) {
7272
}
7373
Invoke-RestMethod @RequestParams -Uri 'https://api.github.com/' | Out-String | Write-Verbose
7474
}
75+
$RequestParams = if ($AuthSession) { @{ WebSession = $AuthSession } } else { @{ } }
7576
$gitParams = @(
7677
'--no-pager'
7778
'log'
@@ -110,4 +111,4 @@ if ($Append) {
110111
else { $currentContent = @() }
111112
$mdTable + $currentContent | Set-Content -Path $Path
112113
}
113-
else { $mdTable | Set-Content -Path $Path }
114+
else { $mdTable | Set-Content -Path $Path }

0 commit comments

Comments
 (0)