springmeyer / arc.js

great circle routes in javascript
http://springmeyer.github.io/arc.js/
BSD 2-Clause "Simplified" License
369 stars 70 forks source link

make 'main' the default (protected) branch? #49

Closed jgravois closed 2 years ago

jgravois commented 2 years ago

these days you don't need to maintain a gh-pages branch in order to wire up GitHub Pages.

if @springmeyer feels like giving me admin keys to this repo i'd be interested in making main the default branch and setting up branch protection rules to disable -f pushing, etc.

springmeyer commented 2 years ago

Happy to give you admin access. But it appears that, given this repo is in my personal account (rather than an org), I'm not able to give you admin.

springmeyer commented 2 years ago

So perhaps share the steps you'd recommend and I can run it out?

jgravois commented 2 years ago

this repo is in my personal account (rather than an org)

i forgot about that little snag 😄

Settings > Branches

there are lots of options to enforce security. at a minimum i find it helpful to disable force pushing and ensure that the commit history for the repo can't be overwritten.

Screen Shot 2022-07-09 at 9 10 06 PM

Settings > Pages

I think this one will update automatically when you rename the default branch, but it'd be worthwhile to doublecheck.

Screen Shot 2022-07-09 at 9 10 20 PM

thanks for humoring me. none of this is mission critical.

springmeyer commented 2 years ago

Thanks, all done!