Interview Prep/Git & GitHub/Scale, Submodules, LFS and GitHub Automation

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 →

  1. List repos: gh repo list ORG --limit 200 --json name -q '.[].name'.
  2. Per repo: clone shallowly, branch, add the file, push, and gh pr create --fill.
  3. Review failures and track merges with gh search prs --owner ORG --label bulk-change.
  4. 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.

All Git & GitHub questions Roadmap: Git & GitHub

More on Scale, Submodules, LFS and GitHub Automation