workflows/labels: fix processing the 100 oldest PRs

The `page` number is 1-based, but the remainder might very well be 0.
This lead to not looking at the 100 oldest PRs, ever.
This commit is contained in:
Wolfgang Walther
2025-06-25 14:51:49 +02:00
parent 98f2635ace
commit 10c63e5117

View File

@@ -390,7 +390,7 @@ jobs:
// so it should certainly be hit on the next iteration.
// TODO: Evaluate after a while, whether the above holds still true and potentially implement
// an overlap between runs.
page: total_runs % Math.ceil(total_pulls / 100)
page: (total_runs % Math.ceil(total_pulls / 100)) + 1
})).data
// Some items might be in both search results, so filtering out duplicates as well.