-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Announcement: Renaming default branch to "main" #15102
Comments
@anthony-c-martin @jorgecotillo Please be aware of the default branch renaming and modify the schema auto-gen pipeline for both ARM template and Bicep. |
@mikhailshilkov Please be aware of this, and check if this will impact native Pulumi Azure provider generation, if so please help do accordingly. |
@zhenglaizhang thank you for the heads-up, we will adjust our integration accordingly 👍 |
Thanks for the heads-up! |
Hi @anthony-c-martin any updates for schema auto-gen pipeline? I noticed that you have create one PR to update but not merged yet. |
Hi @mikhailshilkov any update on your side? |
@zhenglaizhang We are ready to change it as soon as you do, so we shouldn't block you. |
Submitted Azure/azure-resource-manager-schemas#1810 for this, but no need to wait for us. |
To minimal potential risk, we decided to update the branch renaming time from 2021-07-30 to 2021-08-02 |
Hi all, now the spec repo default branch has been renamed as main. |
This has now changed from master -> main - fixes #141 Context Azure/azure-rest-api-specs#15102
As now the renaming is done, and no other issues, closing the PR. |
What is happening?
The Azure SDK Swagger & Tools team will be renaming the default branch (currently
master
) tomain
for the following repo:This repo will have private mirrors, those will also have their default branch renamed. We will use the built-in GitHub branch rename procedure and then rapidly work to address any breakages in the engineering system (preparation work has been underway for some time but we don't expect that we've found all of the potential issues).
When issues are discovered we will be prioritizing fixes as they relate to the current priority order:
General renaming plan
master
branch to the newmain
branch. It will also automatically introduce redirects to any links that point directly to files onmaster
.When is it happening?
We will rename the branches starting the 2021-08-02 9:00 AM GMT+8. The rename itself will not take long, however we expect that various elements of the engineering system will experience temporary outages as we work to address any issues resulting from the rename. Our recovery priorities are listed in the section above.
What we need your help?
To prepare for the smooth default branch renaming, we need your help on following aspects:
default_branch
of GitHub repo API response, mentioned above, before the renaming date 30th of July, 2021.What to expect?
We will be posting the progress in this issue which we will edit to contain any updated information and guidance.
What happens to my existing pull requests?
After the rename has occurred, your existing pull requests from your forks to our upstream will be updated to point to
main
instead ofmaster
(if they were targetingmaster
to begin with). When updating your existing pull requests you will continue to push to the branch you created in your fork.What happens when I submit a new pull request?
When you submit a new pull request, it will automatically point to the
main
branch as this is the new default branch in the target repositories.What happens when I need to rebase?
When you need to rebase, after the rename has occurred you will instead rebase onto the
main
branch. Because themain
branch represents the same commit history as themaster
branch the rebase will work just as it would have previously, only the name of the branch has changed.What happens when I need to switch back to the
main
branch to start new work?That Azure spec repo review workflow recommends that contributors work off a fork of the repository that they are contributing to and then submit pull requests back to the upstream repository from a branch other than master, then switch back to master and pull updates from upstream when starting new work. Typically this means that your local workspace has two remotes (origin and upstream). Assuming the name of the upstream repository which points to the Azure/azure-rest-api-specs repository is called upstream, you can use the following commands to pull down the new main branch references:
Step 1: Rename the master branch in your fork (for each repository)
Visit
https://github.com/[your username]/azure-rest-api-specs/settings/branches
and renamemaster
tomain
.2. Alternatively, you can click on "branches" next to the branch dropdown if the popup is gone or doesn't show.
3. In the branches view, click the pencil button on the right for "master" and rename it to "main"
Step 2: Execute these commands in your local clone of your fork.
If you have any issues following these instructions please let us know ASAP so we can revise them as necessary.
What if I don't want to update my existing clones and I just want to start fresh.
You still need to rename master to main in your fork but after that you can follow the steps listed below to setup a new clone.
When can I submit a PR after the rename?
We would encourage you to submit PRs as soon as you are ready as part of your normal workflow. Your PRs will help us flush out any remaining issues following the rename, and getting the PR process up and running again is the top priority for the engineering systems team.
The text was updated successfully, but these errors were encountered: