🔥Let’s Do DevOps: Update Files in Hundreds of GitHub Repos

Kyler Middleton
2 min readMar 21, 2023

This blog series focuses on presenting complex DevOps projects as simple and approachable via plain language and lots of pictures. You can do it!

Hey all!

I’m migrating my current business from an internal BitBucket server to public GitHub. The migration has mostly been very exciting — GitHub is cutting edge, and the security and scalability features that GitHub makes available are a huge enabler for our velocity.

That’s not to say things are perfect — there are some functionality of BitBucket that is managed as metadata (like default reviewers on PRs), and can therefore be easily updated at scale, that GitHub manages with files that are committed to the repo directly.

The big ones are:

  • CODEOWNERS file assigning different paths to teams who are auto-assigned as reviewers
  • Actions files to run specific actions in repos

The short of it is — sometimes you need to make changes to A LOT of repos at a time. Like, say you need to make a change in every single repo you have in github, and you have 300. Well, that’s going to take a super long time.

So I wrote a tool for that. This tool iterates over every repo in an Org (or User space) and makes changes, then adds those…

--

--

Kyler Middleton

DevNetSecOps, DevRel, cloud security chick. I will teach you, it’s unavoidable. She/Her 🏳️‍🌈🏳️‍🌈, INFJ-A, support the EFF!