Commit b8d1c5e
fix(github): guard nil response and cap comment pagination in ACL checks
Guard against nil HTTP response dereference in CheckPolicyAllowing when
the API call fails at the transport level (fixes #2661).
Cap GetStringPullRequestComment pagination to 10 pages (1000 comments)
to prevent rate-limit exhaustion from comment flooding on PRs when
RememberOKToTest is enabled (fixes #2662).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 421f96c commit b8d1c5e
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
0 commit comments