Copilot review file limit (300) does not take into account content exclusions/.gitattributes #195507
Replies: 3 comments 1 reply
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
This seems like a very reasonable improvement to how Copilot review limits are calculated. Right now the file cap appears to be based on raw changed-file count, even when many of those files are effectively low-signal generated artifacts that reviewers — and often GitHub itself — already treat differently. In repositories using:
it’s easy to hit the 300-file threshold without actually increasing the amount of meaningful review surface area. Applying exclusions before enforcing the limit would make the review system much more aligned with real developer workflows. Using existing repository signals like:
would also keep behavior consistent with the rest of the GitHub review experience. An even better approach might be moving from:
to something more weighted, such as:
That would likely produce much better results for monorepos and dependency-heavy projects where generated files can dominate the PR statistics while contributing very little actual review value. This feels especially important if AI review tooling is expected to become part of normal enterprise CI workflows. |
Beta Was this translation helpful? Give feedback.
-
|
Is there any way to increase the limit ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Product Feedback
Body
When reviewing Pull requests copilot has a file limit.
However this limit does not take into account:
.gitattributese.g.linguist-generatedorlinguist-vendoredIt would make more sense for the limit to be applied after taking into account these exclusions. I often hit the limit when a PR includes a lot of packages updates (e.g. using yarn pnp/zero-installs)
Beta Was this translation helpful? Give feedback.
All reactions