diff --git a/.github/workflows/nightly_tier_report.yml b/.github/workflows/nightly_tier_report.yml index f8e256d2d..b37d6b3f0 100644 --- a/.github/workflows/nightly_tier_report.yml +++ b/.github/workflows/nightly_tier_report.yml @@ -67,13 +67,13 @@ jobs: const report = fs.readFileSync('tier_report.txt', 'utf8'); const title = '[Dashboard: Conformance] Weekly SDK Tier Assessment Failure'; - const prevIssues = await github.rest.issues.listForRepo({ + const prevIssues = await github.paginate(github.rest.issues.listForRepo, { ...context.repo, state: 'open' }); // Find any open issue matching the exact dashboard title - let existingIssue = prevIssues.data.find(issue => issue.title === title); + let existingIssue = prevIssues.find(issue => issue.title === title); if (report.includes('Tier Assessment: Tier 1')) { console.log('Tier 1 achieved! Closing open issue if it exists.');