Repository navigation
Commit 5d6b250
fix(scripts): paginate comments and reactions in auto-close-duplicates
Both reads used GitHub's default page size of 30 and never followed
pagination, unlike the issues list in the same script and every list
call in sweep.ts. A thumbs-down past the first 30 reactions, or human
replies after a dupe notice sitting at comment position 30, were
invisible to the guards, so issues auto-closed despite objections.
Add a githubRequestAllPages helper (per_page=100, follows pages until a
short page) and use it for both reads.
Fixes anthropics#805061 parent 32cf711 commit 5d6b250
1 file changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
49 | 71 | | |
50 | 72 | | |
51 | 73 | | |
| |||
153 | 175 | | |
154 | 176 | | |
155 | 177 | | |
156 | | - | |
| 178 | + | |
157 | 179 | | |
158 | 180 | | |
159 | 181 | | |
| |||
217 | 239 | | |
218 | 240 | | |
219 | 241 | | |
220 | | - | |
| 242 | + | |
221 | 243 | | |
222 | 244 | | |
223 | 245 | | |
| |||
0 commit comments