Rename GH default branches from "master" to "main"

Why?

This is a Cypress "test" that allows you to quickly rename all your GitHub repository default branches from master to main.

Steps:

  1. clone this repo
  2. npm install
  3. run node create-repos-file.js --username={USERNAME} with your username. This will create repos.json, which is an array of URLs to all the repos you want to rename
  4. Run npm run cy
  5. Run the test "rename"
  6. Login with your credentials and then press "resume"
  7. Watch it all run!

Woo!

Watch the live stream of this being built here: https://www.youtube.com/watch?v=xD5ArlskA1w