Skip to content

Commit a4e3869

Browse files
author
James Brundage
committed
test: SyncIssue with token ( re #91 ) [skip ci]
Using GitHubEvent and GitHubToken to auth
1 parent a12b637 commit a4e3869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Examples/SyncIssue.PSJekyll.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if ($env:GitHubToken -and $githubEvent.Repository) {
3030
) -join '&'
3131
$issues =
3232
Invoke-RestMethod -Uri "https://api.github.com/repos/$owner/$repo/issues?$queryString" -Headers @{
33-
"Authorization" = "token $GitHubToken"
33+
"Authorization" = "token $env:GitHubToken"
3434
}
3535
foreach ($issue in $issues) {
3636
$psJekyll.CurrentSite.Data = @{"issues/$($issue.number)" = $issue}

0 commit comments

Comments
 (0)