Change references from "master" branch to "main" branch#1360
Conversation
| echo -e "## Summary of changed images\n" > report.md | ||
| echo -e "This is an auto-generated report of images that have changed on the DVC remote\n" >> report.md | ||
| dvc diff --show-md master HEAD >> report.md | ||
| dvc diff --show-md main HEAD >> report.md |
There was a problem hiding this comment.
This reminds me, we'll need to rename the 'master' branch on https://dagshub.com/GenericMappingTools/pygmt to 'main' too.
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
|
While GitHub will redirect links, I think we should update the links in these files to reflect the new |
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
|
sounds good, I did a quick search but didn't spend much time checking the references. |
|
Maybe we should give this PR a final review and merge it several days before the v0.4.1 release, so that we can have more time to check if there are any related issues in the upcoming v0.4.1 release. |
|
|
core-man
left a comment
There was a problem hiding this comment.
I think all "master" are changed to "main" except in some places indicated above. Great~
Co-authored-by: Yao Jiayuan <coreman.seism@gmail.com>
|
Besides those mentioned at #1360 (comment), here's a few more: |
I don't think we can change EDIT: Sphinx has renamed |
There was a problem hiding this comment.
Besides those mentioned at #1360 (comment), here's a few more:
Line 117 in 6a4b871
pygmt/doc/_templates/layout.html
Line 35 in 6a4b871
I don't think we can change
master_doctomain_doc. It's a sphinx configuration and is used internally by sphinx (see https://github.com/sphinx-doc/sphinx/search?q=master_doc).EDIT: Sphinx has renamed
master_doctoroot_docin sphinx v4.0. We can changemaster_doctoroot_dochere, but it means PyGMT will require sphinx >= 4.0, which was release in May, 2021.
Was just about to say that root_doc should be used instead. We have sphinx 4.1.2 in CI (https://github.com/GenericMappingTools/pygmt/runs/3235302620?check_suite_focus=true#step:6:187) so it should be fine.
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
maxrjones
left a comment
There was a problem hiding this comment.
Does this get merged before or after the actual renaming of the branch?
Either should work. I prefer to merge this PR after renaming the branch, so that we can immediately know how renaming the main branch affects PRs. |
OK, I can rename the branch after the current workflows finish and then ping here to merge in the PR. |
|
Looks good to merge after checks pass, thanks @willschlitzer! |
Thanks heaps @willschlitzer! I'll squash and merge this in directly since the "master" -> "main" rename has been done (otherwise the links on https://www.pygmt.org/dev/index.html won't work). |
…ngTools#1360) PyGMT is changing its default branch from "master" to "main". This pull request changes the references to "master" in the CI job files, maintenance.md, and the README. * change workflow files to point to "main" branch instead of "master" branch * change README to use "main" branch instead of "master" branch * change maintenance.md use "main" branch instead of "master" branch * update conf.py to use main instead of master * update contributing.md to use main instead of master * update external_resources.md to use main instead of master * update config.yml to use main instead of master * change master_doc to root_doc in conf.py and layout.html Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com> Co-authored-by: Dongdong Tian <seisman.info@gmail.com> Co-authored-by: Yao Jiayuan <coreman.seism@gmail.com> Co-authored-by: Meghan Jones <meghanj@alum.mit.edu>
As discussed in #1356, PyGMT is changing its default branch from "master" to "main". This pull request changes the references to "master" in the CI job files, maintenance.md, and the README.
Fixes #1356
Reminders
make formatandmake checkto make sure the code follows the style guide.doc/api/index.rst.Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash commands are:
/format: automatically format and lint the code/test-gmt-dev: run full tests on the latest GMT development version