We have a PR where a developer deleted a lot of webp images.
Cursor is refusing to review it because it considers all webp images as text, rather than as binary. as such it reports:
This PR is too large for Bugbot to review. It changes 7,210 lines and 3,210,005 characters. Split the change into smaller pull requests to get a review.
The .webp files aren’t what’s pushing it over. Bugbot uses git’s normal binary detection, so deleted images show up as “Binary files … differ” and add nothing to the line or character count. The 3.2M characters are coming from text files in the same PR, likely ones with very long lines (generated, minified or data files, for example).
To find them, run git diff --numstat origin/main...HEAD and look for the biggest added or deleted counts (binary files show as -).
If those files don’t need review, mark them in .gitattributes, e.g. path/to/files/** linguist-generated=true (the value has to be =true). Bugbot reads it from the PR itself, so you can add it in this PR, and marked files are left out of the size limit, deleted ones included. GitHub will also collapse those files in its diff view. Then push or comment bugbot run. Otherwise, splitting the PR is the other way to get it reviewed.