Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Create a test repo with a master branch, issues, PRs - See samvera-labs/branch-renaming-wg for a script to do this.
  • Within the test repo, create a wiki page that references a branch in master.
  • Within the test repo, add branch settings under Settings → Branches
  • Create a Fork of the test repo.
  • Clone the test repo to your local machine.
  • Clone the Fork to your local machine.
  • Create a second repo with a pin in the Gemfile to a master sha in the repo having the branch renamed

...

  •  renames master to main
    •  branch dropdown defaults to main
    •  master is not in the branch dropdown
  •  Settings → Branches
    •  main is the default branch
    •  branch rules were copied over to main
    •  master branch is not in the branch dropdown under Default branch
    •  master branch is not listed in the Branch protection rules area
    •  
  •  updates issues
    •  changes reference to a sha in master to the same sha in main
    •  changes links to code in master branch to the same code in main
  •  updates PRs
    •  updates 'commit into' branch to main for all PRs
    •  updates links to code in master branch to the same code in main
  •  wiki updated
    •  updates links to code in master branch to the same code in main
  •  local git repo
    •  updates to local master tracking origin/master to local main tracking origin/main
    •  updates branches based on origin/master to origin/main
    •  updates branches based on local master to local main
    •  in second repo, updates pin to master sha in the repo having the branch renamed
  •  working with Forks
    •  TBD

...