Skip to content

Commit 1136dc0

Browse files
author
James Brundage
committed
test: SyncIssue with token ( re #91 ) [skip ci]
Tracing if token is present
2 parents ec398e1 + 95166f1 commit 1136dc0

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Examples/SyncIssue.PSJekyll.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ if (-not $gitHubEvent.issue -and -not $gitHubEvent.discussion) {
33
}
44

55
Start-Sleep -Seconds (Get-Random -Minimum 10 -Maximum 20)
6-
get merge origin/main | Out-Host
6+
git merge origin/main | Out-Host
77
git pull | Out-Host
88

9+
if ($GitHubToken) {
10+
"GitHub Token is present" | Out-Host
11+
}
912
if ($GitHubToken -and $env:GIHUB_REPOSIORY) {
1013
$owner, $repo = $env:GIHUB_REPOSIORY -split '/'
1114
"Getting issues for $owner, $repo" | Out-Host

docs/_data/issues/102.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"assignee": null,
44
"assignees": [],
55
"author_association": "MEMBER",
6-
"body": "PSJekyll's action should attempt to improve in a few ways:\r\n\r\n* [x] #103\r\n* [ ] #104\r\n* [ ] #105\r\n* [ ] #106\r\n* [ ] #129\r\n",
7-
"closed_at": null,
6+
"body": "PSJekyll's action should attempt to improve in a few ways:\r\n\r\n* [x] #103\r\n* [x] #104\r\n* [x] #105\r\n* [x] #106\r\n* [x] #129\r\n",
7+
"closed_at": "2024-10-18T01:46:59Z",
88
"comments": 0,
99
"comments_url": "https://api.github.com/repos/PowerShellWeb/PSJekyll/issues/102/comments",
1010
"created_at": "2024-10-15T03:15:30Z",
@@ -31,11 +31,11 @@
3131
"url": "https://api.github.com/repos/PowerShellWeb/PSJekyll/issues/102/reactions"
3232
},
3333
"repository_url": "https://api.github.com/repos/PowerShellWeb/PSJekyll",
34-
"state": "open",
35-
"state_reason": null,
34+
"state": "closed",
35+
"state_reason": "completed",
3636
"timeline_url": "https://api.github.com/repos/PowerShellWeb/PSJekyll/issues/102/timeline",
3737
"title": "`PSJekyll` Action Improvement",
38-
"updated_at": "2024-10-18T01:44:35Z",
38+
"updated_at": "2024-10-18T01:47:01Z",
3939
"url": "https://api.github.com/repos/PowerShellWeb/PSJekyll/issues/102",
4040
"user": {
4141
"avatar_url": "https://avatars.githubusercontent.com/u/1043665?v=4",

0 commit comments

Comments
 (0)