From 10c63e51170fa43f4e2ff021e8e113578f855662 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 25 Jun 2025 14:51:49 +0200 Subject: [PATCH] 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. --- .github/workflows/labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 3421ef77da5e..e1b7bd987cb2 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -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.