This is a Cypress "test" that allows you to quickly rename all your GitHub
repository default branches from master
to main
.
Steps:
- clone this repo
npm install
- 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 - Run
npm run cy
- Run the test "rename"
- Login with your credentials and then press "resume"
- Watch it all run!
Woo!
Watch the live stream of this being built here: https://www.youtube.com/watch?v=xD5ArlskA1w