You need to apply a change (a new `CODEOWNERS` file) to 80 repositories.
IntermediateScenarioScale, Submodules, LFS and GitHub Automation
Answer
Situation read → Do it with a script, and still go through PRs.
What I'd do →
- List repos:
gh repo list ORG --limit 200 --json name -q '.[].name'. - Per repo: clone shallowly, branch, add the file, push, and
gh pr create --fill. - Review failures and track merges with
gh search prs --owner ORG --label bulk-change. - For ongoing needs use org-level rulesets or required workflows instead of per-repo files.
Why → PRs keep the audit trail and let owners object.
Interview tip → Tools like Renovate, Sourcegraph batch changes, or gh scripts all fit.
More on Scale, Submodules, LFS and GitHub Automation
A monorepo has 4 GB of history and developers only touch one service. How do you make their day-to-day faster?IntermediateDesigners commit PSD and video assets, and the repo keeps growing. How do you move them to Git LFS?IntermediateYour GitHub LFS bandwidth quota is exhausted and CI pulls fail. What do you do?AdvancedA repository uses a submodule. How does a developer get the right version of it?BeginnerSubmodules, subtree or a package manager for sharing code between repos?IntermediateCI cannot clone a private submodule: authentication fails in `actions/checkout`.Intermediate