We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e537f4 commit bbb7ab0Copy full SHA for bbb7ab0
.github/workflows/ReportDiff.ps1
@@ -2,9 +2,12 @@
2
$changed = (select-string "nothing to commit" artifacts\status.txt).count -eq 0
3
if (-not $changed) { return $changed }
4
# Check if tracking issue is open/closed
5
-$Headers = @{ Authorization = 'token {0}' -f $ENV:GITHUB_TOKEN; };
+$Headers = @{
6
+ Authorization = 'token {0}' -f $ENV:GITHUB_TOKEN;
7
+ 'Content-Type' = 'application/json'
8
+};
9
$result = Invoke-RestMethod -Uri $issue
-if ($result.state -eq "closed") {
10
+if ($result.state -eq "closed") {
11
$json = "{ `"state`": `"open`" }"
12
$result = Invoke-RestMethod -Method PATCH -Headers $Headers -Uri $issue -Body $json
13
}
0 commit comments