Commit 7fd08d4
fix: reconstruct diff from per-file patches when GitHub 406s on large PRs (#61)
_fetch_pr_once fetches the diff via the .diff media type, which GitHub
406s when the diff is too large (e.g. 722-file PR), aborting the review.
On 406, rebuild the unified diff from the per-file patches already
fetched from the /files API.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3c8eca9 commit 7fd08d4
1 file changed
Lines changed: 21 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
212 | 227 | | |
213 | 228 | | |
214 | 229 | | |
| |||
221 | 236 | | |
222 | 237 | | |
223 | 238 | | |
224 | | - | |
| 239 | + | |
225 | 240 | | |
226 | 241 | | |
227 | 242 | | |
| |||
0 commit comments