-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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 "master" branch to "main" #21749
Comments
/priority awaiting-more-evidence |
@sftim it's looking likely that we're going to wait to see what GitHub rolls out before making any moves ourselves, just fyi |
Yep, I've intentionally set this to /priority awaiting-more-evidence |
Duplicated by issue #22069 |
/wg naming |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Celeste to get more info: |
Per our last SIG Docs meeting: @sftim is on board with the idea of renaming master branch to main instead. /rename Rename "master" branch to "main" |
/retitle Rename "master" branch to "main" |
@celestehorgan feel free to |
/triage accpeted From an implementation perspective, there are three major steps here. One is (to me) ambiguous:
|
@celestehorgan: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove priority-awaiting-more-evidence |
BTW we can start by mirroring the master branch to the main branch. Branch mirroring makes transitions less painful. |
What do we do about all the in-flight PRs? Does GitHub automatically update their base branch? |
@sftim I suspect we'll have to start by mirroring. I tested this out on an old repository of mine:
The results were:
Ergo, we'd have to create |
We could block merges to https://github.com/google/mirror-branch-action can help here. |
(after that's set up, anyone who has a PR targeting |
/remove-priority awaiting-more-evidence |
@justaugustus – Are individual repos in the org now free to go ahead and start renaming their main branches, or are we still investigating? |
Yes, individual repos can rename their branch if they are interested. https://k8s.dev/rename has more details. Having said that, we've only renamed low-volume repos until now. @spiffxp do you know if the issue with webhooks getting triggered on all issues/PRs has been fixed? If yes, can we trial this on k/website? |
I think we have the ability to make this change ASAP. I will send something out to the mailing list and bring it up at this weeks SIG Docs meeting. If there's no objection, I can open the non-disruptive PRs and we can plan a date. Thanks! |
Awesome to see! /unassign @celestehorgan |
I believe so, yes. There is a relevant test-infra issue for this |
kubernetes/test-infra#20829 should be fixed as of two months ago |
FYI - we have done the switch for another repo that was using netlify. It will throw an error if the |
Changes pre-rename
Just before rename
I don't believe we have anything other then netlify to tweak. Approval
Rename the default branch
Other
Lessons learned:
|
+1 as github admin 👍 |
Should we open an issue about the docs update, get a held PR open for that? |
Edit: Sorry, misread, I'm not sure it will make a difference considering the change is through the GUI. |
I was thinking about pages like the guide to contributing and https://kubernetes.io/docs/contribute/new-content/open-a-pr/#create-a-branch |
@sftim oh! Double misunderstood, heh. Yes, opening a tracking issue / PR to resolve lingering docs would be fantastic! I have a feeling some of it will just take time to flow through localization strategies too. |
Tracking issue: #28462 |
👀 |
Renaming is complete. Ref: https://groups.google.com/g/kubernetes-sig-docs/c/s98sr2appP4/m/M-r7gANqAgAJ |
@jimangel: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Quick note: My open PRs seemed to transition properly to main. However, if there has not been a new commit to regenerate the Netlify build, the old Netlify link is listed at the bottom of the PR. I was able to see the new Netlify by simply changing |
Website admins can manually retrigger a build to fix that - I haven't looked into automating this though, as it's a one-off change. |
This is a Feature Request
What would you like to be added
Rename the master branch to main
Why is this needed
Our live website builds from the master branch
I suggest serving the website from a (new) branch called main instead.
This change avoids using a term linked with controversy (especially in the United States of America).
/kind cleanup
The text was updated successfully, but these errors were encountered: