Skip to content

Commit 2ae2efa

Browse files
author
Kim Harjamaki
committed
Fix GraphQL query here-string expansion
1 parent be0f65e commit 2ae2efa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/autopilot-operator.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Write-Log "Max issues: $maxIssues Dry run: $dryRun"
2424

2525
function Search-Issues {
2626
param([string]$SearchQuery, [int]$First)
27-
$gql = @"
27+
$gql = @'
2828
query($q:String!, $first:Int!) {
2929
search(query:$q, type:ISSUE, first:$first) {
3030
nodes {
@@ -39,7 +39,7 @@ query($q:String!, $first:Int!) {
3939
}
4040
}
4141
}
42-
"@
42+
'@
4343
$resp = gh api graphql -f query="$gql" -f q="$SearchQuery" -f first=$First
4444
$data = $resp | ConvertFrom-Json
4545
return $data.data.search.nodes

0 commit comments

Comments
 (0)