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

Changing default branch from Master to Main while still keeping the master #119

Closed
Dhruv-Sachdev1313 opened this issue Oct 5, 2021 · 7 comments
Labels

Comments

@Dhruv-Sachdev1313
Copy link
Member

We can make a new branch as Main and make it the default branch and still keep the Master branch for some time so that it doesn't break anything. Then maybe delete the Master after some time.
This is how @sgoggins made the change to Main for Augur!

@ElizabethN
Copy link
Collaborator

@Nebrethar @kaxada I think this is a super important change to make. Can I make it? Will it mess up the Badging Bot if I do?

@ayushtamra
Copy link

Yes, I think its implementable with probably not breaking anything(because the implementation is not much dependent on branch) but making things sure enough we have decided to make the bot use .md files which is in the .github directory from the badging-bot repository ,i.e, migrating the .github folder to the badging bot project directory and accessing the welcome messages and checklist messages from there.
This will replace the implementation of accessing repository contents through Github API and then changing branch will not effect it.

You can find the links here:

Project idea: https://github.com/orgs/badging/projects/1#card-79627246
Issue: badging/BadgingAPI#33

Its implemented with this pull-request and with support of @Nebrethar I think we will be deploying it soon, in the next versions of it.

@Nebrethar
Copy link
Member

This will have to happen upon the next release of the badging-bot 😁 see you soon!

@ElizabethN
Copy link
Collaborator

@kaxada do you think this is something we could prioritize with upcoming releases? I'd really love to see this happen but I'm not sure what it will take to get it there 🤔 Do you have thoughts on this?

@ElizabethN
Copy link
Collaborator

Just wanted to bump this up because i think it's super important to do. I am not sure what it will require though! cc @kaxada

@kaxada
Copy link
Collaborator

kaxada commented Dec 2, 2022

Ohh. As far as I know. the related configurations between this and other repositories are not affected by the naming of the branch. So we can make the change now. let me do it.

@kaxada
Copy link
Collaborator

kaxada commented Dec 2, 2022

to change the name of your local branch copy and paste this:

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

@kaxada kaxada closed this as completed Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants