diff options
| author | Lorenzo <88429075+lorentsob@users.noreply.github.com> | 2026-11-27 12:03:45 +0100 |
|---|---|---|
| committer | Lorenzo <88429075+lorentsob@users.noreply.github.com> | 2026-12-02 12:42:46 +0100 |
| commit | 10fcd88fb3222dbbd82a5a6f1eb682ff4e04ecd5 (patch) | |
| tree | 66ca5ca453794434c1b72f21151b68b3816bd4b5 /runtime/test/code_hooks_test.cpp | |
| parent | 40ac04183322840c953fc120eb9bcba9b6cfb7f5 (diff) | |
pr_conflict_label: read the open pull requests 100 per request (TOOLS-PR-CONFLICT-LABEL-RATE-LIMIT)
The Needs rebase label workflow asked for every open pull request by number,
once per attempt. The workflow's token gets 1,000 requests an hour for the
whole repository, shared by every run, so with several hundred open runs
failed with HTTP 403 "API rate limit exceeded for installation" and labels
went stale.
A run over every open pull request now reads number, mergeable and labels
through the GraphQL API, 100 per request: 3 requests per attempt for 210
open. Since a listing is cheap, its attempts are 60 seconds apart: the three
waits give GitHub about the minutes a pass of one request per pull request
used to, to compute the merges a push to main reset. What the tool decides and
writes is unchanged; --pr still asks for each number, 10 seconds apart.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions