Skip to content

Commit

Permalink
changing to gh api query for pagination support on listing all issues
Browse files Browse the repository at this point in the history
  • Loading branch information
matebarabas committed Aug 26, 2024
1 parent 537e7b2 commit fa8ed11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/tools/module-indexes/module-index.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BeforeAll {
$rawFile = Get-Content -Path $CsvFilePath
$csvHeaders = $csvContent[0].PSObject.Properties.Name

$issues = & gh issue list --limit 99999 --state all --json title,body | ConvertFrom-Json
$issues = & gh api -X GET "repos/{owner}/{repo}/issues?state=all&per_page=100" --paginate --jq '.[] | {title: .title, body: .body}' | ConvertFrom-Json -Depth 100

$singularExceptions = @(
'redis',
Expand Down

0 comments on commit fa8ed11

Please sign in to comment.