Skip to content

Change main branch from "master" to "main" #1356

Closed

Description

@willschlitzer

In the interest of inclusivity, should we change the main git branch from master to main? This would be in line with changes to large Python repos, including CPython, Numpy, Flask, and Django, as well as the default main branch for all new GitHub repos.

Are you willing to help implement and maintain this feature? Yes

Activity

  1. seisman commented on Jun 24, 2021

    @seisman
    Member

    I'm OK with the change.

  2. michaelgrund commented on Jun 24, 2021

    @michaelgrund
    Member

    Mee, too! Are there any technical issues which could come up when changing the master branch?

  3. core-man commented on Jun 24, 2021

    @core-man
    Member

    Mee, too! Are there any technical issues which could come up when changing the master branch?

    I don't think so from my experience for this change 😄

  4. weiji14 commented on Jun 24, 2021

    @weiji14
    Member

    Guidance is at https://github.com/github/renaming. Contributors will need to point their git remote to the new 'main' branch locally on their computers, and there will need to be a Pull Request to rename 'master' to 'main' across our documentation/CI scripts/etc.

  5. maxrjones commented on Jun 24, 2021

    @maxrjones
    Member

    I support the change. Seems that github has made the process rather streamlined.

  6. pinned this issue on Jun 24, 2021
  7. added
    maintenance
    and removed
    feature request
    on Jun 24, 2021
  8. added this to the 0.5.0 milestone on Jun 24, 2021
  9. willschlitzer commented on Jun 25, 2021

    @willschlitzer
    ContributorAuthor

    Guidance is at https://github.com/github/renaming. Contributors will need to point their git remote to the new 'main' branch locally on their computers, and there will need to be a Pull Request to rename 'master' to 'main' across our documentation/CI scripts/etc.

    I don't have the rights to rename the default branch, but I have submitted a draft PR changing documentation and CI scripts.

  10. maxrjones commented on Jun 25, 2021

    @maxrjones
    Member

    At the same time, we could update the 'master' CPT references in the docstrings for these two functions:

    ./pygmt/src/grd2cpt.py
    ./pygmt/src/makecpt.py

  11. seisman commented on Jun 26, 2021

    @seisman
    Member

    At the same time, we could update the 'master' CPT references in the docstrings for these two functions:

    ./pygmt/src/grd2cpt.py
    ./pygmt/src/makecpt.py

    But they are called "master" CPT in GMT.

  12. seisman commented on Jun 29, 2021

    @seisman
    Member

    One more note: there are some links in the old documentation that are linked to files on the master branch, for examples, links to the LICENSE.txt, CONTRIBUTING.md and links to example source files. Changing "master" to "main" also breaks the old documentation (including the latest v0.4.0 documentation).

    Does GitHub automatically redirect any links of master branch to "main"? If not, do we want to update the old documentation in the gh-pages?

  13. willschlitzer commented on Jun 29, 2021

    @willschlitzer
    ContributorAuthor

    One more note: there are some links in the old documentation that are linked to files on the master branch, for examples, links to the LICENSE.txt, CONTRIBUTING.md and links to example source files. Changing "master" to "main" also breaks the old documentation (including the latest v0.4.0 documentation).

    Does GitHub automatically redirect any links of master branch to "main"? If not, do we want to update the old documentation in the gh-pages?

    While I don't want to limit anyone's access to information, do we expect many individuals to be clicking through our old documentation? On that topic, is there typically an expectation to support old documentation versions once new versions are released?

  14. 15 remaining items

  15. core-man commented on Jul 23, 2021

    @core-man
    Member

    Releasing v0.4.1 within the few weeks and sticking to the regular schedule for v0.5.0 sounds good to me.

    Alright, we'll need to assign a release manager. Do you want to do it again @meghanrjones? Or we can choose someone who hasn't done it before like @michaelgrund or @core-man if they are keen to try. This is a pretty small release so shouldn't be too difficult

    😄 I'd like to do the release v0.4.1 if either meghanrjones or michaelgrund is not available then.

  16. willschlitzer commented on Jul 23, 2021

    @willschlitzer
    ContributorAuthor

    This is a pretty small release so shouldn't be too difficult 🤞

    Famous last words! 😝

  17. maxrjones commented on Jul 23, 2021

    @maxrjones
    Member

    Releasing v0.4.1 within the few weeks and sticking to the regular schedule for v0.5.0 sounds good to me.

    Alright, we'll need to assign a release manager. Do you want to do it again @meghanrjones? Or we can choose someone who hasn't done it before like @michaelgrund or @core-man if they are keen to try. This is a pretty small release so shouldn't be too difficult

    😄 I'd like to do the release v0.4.1 if either meghanrjones or michaelgrund is not available then.

    Great, thanks for volunteering!

  18. michaelgrund commented on Jul 25, 2021

    @michaelgrund
    Member

    Releasing v0.4.1 within the few weeks and sticking to the regular schedule for v0.5.0 sounds good to me.

    Alright, we'll need to assign a release manager. Do you want to do it again @meghanrjones? Or we can choose someone who hasn't done it before like @michaelgrund or @core-man if they are keen to try. This is a pretty small release so shouldn't be too difficult

    😄 I'd like to do the release v0.4.1 if either meghanrjones or michaelgrund is not available then.

    Thanks @core-man for doing it 😉.

  19. seisman commented on Jul 25, 2021

    @seisman
    Member

    Maybe a good idea to wait until after the SciPy sprints on 17/18 July so that the edit links don't break. But do it before the ESWN developer workshop on 17-19 Aug. Sometime late July 2021 perhaps for PyGMT v0.4.1?

    What about releasing v0.4.1 on Aug. 7? It's the weekend after the AGU abstract submission deadline, and 10 days before the ESWN developer workshop.

  20. modified the milestones: 0.5.0, 0.4.1 on Jul 30, 2021
  21. seisman commented on Jul 30, 2021

    @seisman
    Member

    @core-man Please make an issue to track the v0.4.1 release. See #1333 for an example issue for v0.4.0.

  22. maxrjones commented on Aug 4, 2021

    @maxrjones
    Member

    I renamed the branch from master to main. GitHub says that all the PR targets will be updated but contributors will need to update their local environment. Here are the commands provided:

    git branch -m master main
    git fetch origin
    git branch -u origin/main main
    git remote set-head origin -a
    
  23. unpinned this issue on Aug 9, 2021
  24. maxrjones commented on Aug 25, 2021

    @maxrjones
    Member

    @weiji14, do you know how to update the default branch on DAGsHub?

  25. weiji14 commented on Aug 25, 2021

    @weiji14
    Member

    @weiji14, do you know how to update the default branch on DAGsHub?

    Why? The DAGsHub repo is just a mirror of the GitHub repo. I think the master branch should have disappeared already.

  26. maxrjones commented on Aug 25, 2021

    @maxrjones
    Member

    @weiji14, do you know how to update the default branch on DAGsHub?

    Why? The DAGsHub repo is just a mirror of the GitHub repo. I think the master branch should have disappeared already.

    I was wondering because the default branch is listed as add_hotspot_data now that the master branch is gone (https://dagshub.com/GenericMappingTools/pygmt/branches), but it's not a big deal.

  27. weiji14 commented on Aug 25, 2021

    @weiji14
    Member

    @weiji14, do you know how to update the default branch on DAGsHub?

    Why? The DAGsHub repo is just a mirror of the GitHub repo. I think the master branch should have disappeared already.

    I was wondering because the default branch is listed as add_hotspot_data now that the master branch is gone (https://dagshub.com/GenericMappingTools/pygmt/branches), but it's not a big deal.

    Ah I see. I didn't see any setting for that, so maybe raise it with DAGsHub, if you can find their issue tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenance

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions