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

Test of renaming master branch to main #1

Closed
wants to merge 2 commits into from

Conversation

abadger
Copy link
Owner

@abadger abadger commented Jun 19, 2020

This is a test PR to make sure renaming branches is going to work.

abadger added 2 commits June 9, 2020 20:23
truncated.  Toning down the concurrency resolves that.
The new format for refs will be:

  :ref:`ansible_collections.{FQCN}_{plugin_type}`
  # Exapnded:
  :ref:`ansible_collections.community.general.zypper_module`

Fixes ansible-community#52
@abadger abadger changed the base branch from master to main June 19, 2020 04:11
@abadger
Copy link
Owner Author

abadger commented Jun 19, 2020

This seems to be the way to change from master to main when there are just a small number of open PRs:

git clone repo
git checkout master
git pull --rebase
git checkout -b main
git push --set-upstream origin main  
# Go to github and retarget the open PRs to main
# Go to github settings and set the default branch to main
# Go to github settings and change any branch protection rules for master to be for main instead
# Go to github and delete the master branch
# Update any config that references the master branch.  For instance: https://github.com/ansible-community/antsibull/pull/100

Questions for more widely used/forked repos:

  • Does something then need to be done to everyone's clones?
  • Do we need to use git symbolic-ref to create an alias from master to main for a time?
  • Retargetting PRs would be painful to do manually if there are a large number of PRs. Can this be scripted? Is there some other way to achieve the same thing?

@abadger abadger closed this Jun 19, 2020
@abadger
Copy link
Owner Author

abadger commented Jun 21, 2020

Here's the api to change pr base branches https://developer.github.com/changes/2016-08-23-change-base/

@abadger abadger deleted the fix-ref-targets-and-M-links branch June 22, 2020 23:22
@abadger abadger changed the title Fix ref targets and m links Test of renaming master branch to main Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant