mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
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:
2
.github/workflows/labels.yml
vendored
2
.github/workflows/labels.yml
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user