Skip to content

Commit a12b637

Browse files
author
James Brundage
committed
test: SyncIssue with token ( re #91 ) [skip ci]
Using GitHubEvent
1 parent 02eff41 commit a12b637

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Examples/SyncIssue.PSJekyll.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ if (-not $gitHubEvent.issue -and -not $gitHubEvent.discussion) {
1616
if ($env:GitHubToken) {
1717
"GitHub Token is present" | Out-Host
1818
}
19-
if ($env:GitHubToken -and $env:GITHUB_REPOSIORY) {
20-
$owner, $repo = $env:GITHUB_REPOSIORY -split '/'
19+
if ($env:GitHubToken -and $githubEvent.Repository) {
20+
$owner, $repo = $githubEvent.Repository.owner.login, $githubEvent.Repository.name
2121
"Getting issues for $owner, $repo" | Out-Host
2222
$queryString = @(
2323
if ($IssueState) {

0 commit comments

Comments
 (0)