diff options
author | Phillip Johnsen <johphi@gmail.com> | 2020-09-16 23:18:19 +0300 |
---|---|---|
committer | Mary Marchini <mmarchini@netflix.com> | 2020-09-17 21:54:28 +0300 |
commit | c24ad832bbc6476eeb90deafdebb758ecd68d0de (patch) | |
tree | 783add99c88ce8dac80b92e28c354db97dfed923 /.github | |
parent | fe293e914c3b9a65d2024971ebbefcf8a93dc549 (diff) |
build: increase API requests for stale action
The second attempt at getting the auto closing of issues & PRs to work
as expected without hitting a maximum operations allowed error we've
been seeing.
Recently discovered that the mentioned error is actually self imposed
by the stale action itself. It keeps track of how many outgoing GitHub
API requests it performs, and if that count exceeds the configured
`operations-per-run` option, it exits to avoid hitting API rate limits.
Default `operations-per-run` value is set to `30`.
That's a very low limit and we're not at all concerned hitting that
rate limit as of now, so we're bumping `operations-per-run` to `500`
with these changes.
Refs https://github.com/nodejs/node/issues/35144
PR-URL: https://github.com/nodejs/node/pull/35235
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/close-stalled.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/close-stalled.yml b/.github/workflows/close-stalled.yml index 335a1eea471..1834d3ac2e6 100644 --- a/.github/workflows/close-stalled.yml +++ b/.github/workflows/close-stalled.yml @@ -17,6 +17,8 @@ jobs: close-pr-message: Closing this because it has stalled. Feel free to reopen if this PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions. # used to filter issues to check whether or not should be closed, avoids hitting maximum operations allowed if needing to paginate through all open issues only-labels: stalled + # max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits + operations-per-run: 500 # deactivates automatic removal of stalled label if issue gets any activity remove-stale-when-updated: false # deactivates automatic stale labelling as we prefer to do that manually |