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

Rename master branch to main #23

Merged
merged 2 commits into from Jan 31, 2021
Merged

Rename master branch to main #23

merged 2 commits into from Jan 31, 2021

Conversation

br3ndonland
Copy link
Owner

Description

In August 2020, GitHub announced that the default branch for new repositories will change from master to main. To enable branch name changes for existing repositories, they enabled branch renaming from the web UI, and provided some guidelines for renaming master to main. Renaming the branch from the web UI doesn't rename references to the branch, such as in GitHub Actions workflows, so this needs to be done with separate commits. Also note, for repos with GitHub Pages sites, the sites may display a 404 after renaming the default branch from master to main until a commit is pushed to main.

Changes

  • Update CONTRIBUTING.md for main branch (7674081)
  • Update GitHub Actions workflows for main branch (c03de3d)
  • Change branch protection rules from master to main (not shown in Git)

Related

@codecov
Copy link

codecov bot commented Jan 31, 2021

Codecov Report

Merging #23 (c03de3d) into develop (a060a4e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           develop       #23   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          222       222           
=========================================
  Hits           222       222           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a060a4e...c03de3d. Read the comment docs.

@br3ndonland br3ndonland merged commit cb94fa1 into develop Jan 31, 2021
@br3ndonland br3ndonland deleted the master-to-main branch January 31, 2021 01:46
br3ndonland added a commit that referenced this pull request Feb 6, 2021
#23

Using HEAD instead of master will prevent errors if the branch is
renamed from master to main.
br3ndonland added a commit to br3ndonland/template-python that referenced this pull request Mar 19, 2021
br3ndonland added a commit to br3ndonland/template-python that referenced this pull request Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant