🐛 add a codeowner expansion limit to prevent api exhaustion#4817
Merged
spencerschrock merged 3 commits intoossf:mainfrom Nov 10, 2025
Merged
🐛 add a codeowner expansion limit to prevent api exhaustion#4817spencerschrock merged 3 commits intoossf:mainfrom
spencerschrock merged 3 commits intoossf:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4817 +/- ##
==========================================
+ Coverage 66.80% 69.60% +2.80%
==========================================
Files 230 251 +21
Lines 16602 15655 -947
==========================================
- Hits 11091 10897 -194
+ Misses 4808 3888 -920
- Partials 703 870 +167 🚀 New features to boost your workflow:
|
|
This pull request has been marked stale because it has been open for 10 days with no activity |
Member
Author
|
Spencer to look at if a test case makes sense here, and not too artficial. |
Some repositories have 5,000+ CODEOWNERS, which completely exhaust API quota. 100 was arbitrarily chosen, as a large but not extreme amount of API quota to try and stay under. https://github.com/DefinitelyTyped/DefinitelyTyped/blob/95890e39aca378c38427afd218e76cc2bbd3fc31/.github/CODEOWNERS Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
97ff623 to
4dce854
Compare
AdamKorcz
approved these changes
Nov 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
bug fix
What is the current behavior?
Some repositories have 5,000+ CODEOWNERS, which completely exhaust API quota.
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/95890e39aca378c38427afd218e76cc2bbd3fc31/.github/CODEOWNERS
What is the new behavior (if this is a feature change)?**
100 was arbitrarily chosen as the number of codeowners to parse, as a large but not extreme amount of API quota to try and stay under.
Which issue(s) this PR fixes
Fixes #4816
Special notes for your reviewer
Does this PR introduce a user-facing change?
For user-facing changes, please add a concise, human-readable release note to
the
release-note(In particular, describe what changes users might need to make in their
application as a result of this pull request.)