This repository was archived by the owner on Dec 18, 2025. It is now read-only.
Commit ae22296
authored
do not retry on secondary limits (#380)
<!-- This is an auto-generated comment: release notes by openai -->
### Summary by OpenAI
**Refactor:**
- Replaced `warning` import with a `console.log` statement in
`src/octokit.ts`.
- Added a condition to check the retry count before logging and
returning `true`.
- Updated `onSecondaryRateLimit` function to log rate limit information
directly.
- Removed the `retry` configuration object.
> 🎉 Here's to the code that's leaner, not meaner,
> To the logs that are clearer, making debugging no fearer.
> With each retry counted, and rate limits mounted,
> We've refactored and pruned, and a victory is sounded! 🥳
<!-- end of auto-generated comment: release notes by openai -->1 parent 955c447 commit ae22296
1 file changed
+10
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | | - | |
32 | 34 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
0 commit comments