Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename default branch to main #245

Closed
3 tasks done
adalinesimonian opened this issue Sep 30, 2021 · 6 comments
Closed
3 tasks done

Rename default branch to main #245

adalinesimonian opened this issue Sep 30, 2021 · 6 comments
Labels
type: infrastructure an improvement to devops

Comments

@adalinesimonian
Copy link
Member

adalinesimonian commented Sep 30, 2021

Per GitHub guidance and in the spirit of other changes in stylelint to remove racist language, we should rename the default branch to main. There would be little to no impact as a result of the switch thanks to changes made by GitHub. The only things we'd need to do are:

  • Change the default branch name in the repository settings
  • Update CI workflows to refer to the correct branch name
  • Rename the branch locally and update refs:
    git branch -m master main
    git fetch
    git branch --unset-upstream
    git branch -u origin/main
    

That's it! Simple and straightforward as can be.

@adalinesimonian adalinesimonian added type: refactor an improvement to the code structure status: ready to implement is ready to be worked on by someone labels Sep 30, 2021
@ntwb
Copy link
Member

ntwb commented Sep 30, 2021

Ha, I was just looking at this at the same time, happy to do that now if you want

It would also be good to do this for the entire @stylelint org, maybe for the rest of the project after v14 is released

@adalinesimonian
Copy link
Member Author

Ha, I was just looking at this at the same time, happy to do that now if you want

That'd be great, thank you!

It would also be good to do this for the entire @stylelint org, maybe for the rest of the project after v14 is released

Absolutely. Should we create an issue to track the org-wide change on the main repository so that we don't forget about it?

@ntwb
Copy link
Member

ntwb commented Sep 30, 2021

Done, the new default branch is main

@adalinesimonian
Copy link
Member Author

Thanks! I'll update the workflows.

@ntwb
Copy link
Member

ntwb commented Sep 30, 2021

Pretty neat, Dependabot PRs auto updated the branch to main

@adalinesimonian
Copy link
Member Author

All done!

@adalinesimonian adalinesimonian added type: infrastructure an improvement to devops and removed type: refactor an improvement to the code structure status: ready to implement is ready to be worked on by someone labels Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: infrastructure an improvement to devops
Projects
None yet
Development

No branches or pull requests

2 participants