Skip to content

Commit 97a8ce1

Browse files
authored
Merge pull request #1529 from manics/master-main
Rename master branch to main
2 parents 3eb81bb + 32d44f9 commit 97a8ce1

File tree

13 files changed

+31
-30
lines changed

13 files changed

+31
-30
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
#
3434
Publish:
3535
runs-on: ubuntu-latest
36-
if: startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/master')
36+
if: startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main')
3737
steps:
3838
- uses: actions/checkout@v3
3939
with:

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ You are assumed to have a modern version of [Python](https://www.python.org/),
283283
1. Install `helm` - the Kubernetes package manager.
284284

285285
```bash
286-
curl -sf https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
286+
curl -sf https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
287287
```
288288

289289
Here are the [official installation instructions](https://helm.sh/docs/intro/install/).
@@ -368,7 +368,7 @@ it with another version from the [JupyterHub Helm chart
368368
repository](https://jupyterhub.github.io/helm-chart/).
369369

370370
Use the [JupyterHub Helm chart's
371-
changelog](https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/master/CHANGELOG.md)
371+
changelog](https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/HEAD/CHANGELOG.md)
372372
to prepare for breaking changes associated with the version bump.
373373

374374
### Releasing

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![GitHub](https://img.shields.io/badge/issue_tracking-github-blue.svg)](https://github.com/jupyterhub/binderhub/issues)
77
[![Discourse](https://img.shields.io/badge/help_forum-discourse-blue.svg)](https://discourse.jupyter.org/c/binder/binderhub)
88
[![Gitter](https://img.shields.io/badge/social_chat-gitter-blue.svg)](https://gitter.im/jupyterhub/binder)
9-
[![Contribute](https://img.shields.io/badge/I_want_to_contribute!-grey?logo=jupyter)](https://github.com/jupyterhub/binderhub/blob/master/CONTRIBUTING.md)
9+
[![Contribute](https://img.shields.io/badge/I_want_to_contribute!-grey?logo=jupyter)](https://github.com/jupyterhub/binderhub/blob/HEAD/CONTRIBUTING.md)
1010

1111
## What is BinderHub?
1212

@@ -44,7 +44,7 @@ To contribute to the BinderHub project you can work on:
4444

4545
To see how to build the documentation, edit the user interface or modify
4646
the code see [the contribution
47-
guide](https://github.com/jupyterhub/binderhub/blob/master/CONTRIBUTING.md).
47+
guide](https://github.com/jupyterhub/binderhub/blob/HEAD/CONTRIBUTING.md).
4848

4949
## Installation
5050

binderhub/repoproviders.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def tokenize_spec(spec):
3838
spec_parts = spec.split("/", 2) # allow ref to contain "/"
3939
if len(spec_parts) != 3:
4040
msg = f'Spec is not of the form "user/repo/ref", provided: "{spec}".'
41-
if len(spec_parts) == 2 and spec_parts[-1] != "master":
42-
msg += f' Did you mean "{spec}/master"?'
41+
if len(spec_parts) == 2 and spec_parts[-1] not in ("main", "master"):
42+
msg += f' Did you mean "{spec}/main"?'
4343
raise ValueError(msg)
4444

4545
return spec_parts
@@ -456,8 +456,8 @@ class GitRepoProvider(RepoProvider):
456456
<url-escaped-namespace>/<resolved_ref>
457457
458458
eg:
459-
https%3A%2F%2Fgithub.com%2Fjupyterhub%2Fzero-to-jupyterhub-k8s/master
460-
https%3A%2F%2Fgithub.com%2Fjupyterhub%2Fzero-to-jupyterhub-k8s/f7f3ff6d1bf708bdc12e5f10e18b2a90a4795603
459+
https%3A%2F%2Fgithub.com%2Fbinder-examples%2Fconda/main
460+
https%3A%2F%2Fgithub.com%2Fbinder-examples%2Fconda/034931911e853252322f2309f1246a4f1076fd7d
461461
462462
This provider is typically used if you are deploying binderhub yourself and you require access to repositories that
463463
are not in one of the supported providers.
@@ -957,6 +957,7 @@ class GistRepoProvider(GitHubRepoProvider):
957957
The ref is optional, valid values are
958958
- a full sha1 of a ref in the history
959959
- master
960+
- HEAD for the default branch
960961
961962
If master or no ref is specified the latest revision will be used.
962963
"""

binderhub/tests/test_repoproviders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def test_spec_with_no_suggestion(self):
367367

368368
def test_spec_with_suggestion(self):
369369
spec = "short/suggestion"
370-
error = f'Did you mean "{spec}/master"?'
370+
error = f'Did you mean "{spec}/main"?'
371371
with self.assertRaisesRegex(ValueError, error):
372372
user, repo, unresolved_ref = tokenize_spec(spec)
373373

ci/common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
setup_helm() {
55
helm_version="${1}"
66
echo "setup helm ${helm_version}"
7-
curl -sf https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | DESIRED_VERSION="${helm_version}" bash
7+
curl -sf https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | DESIRED_VERSION="${helm_version}" bash
88
}
99

1010
await_jupyterhub() {

doc/conf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
# You can specify multiple suffix as a list of string:
5858
source_suffix = [".rst", ".md"]
5959

60-
# The master toctree document.
61-
master_doc = "index"
60+
# The root toctree document.
61+
root_doc = "index"
6262

6363
# Set the default role so we can use `foo` instead of ``foo``
6464
default_role = "literal"
@@ -107,7 +107,7 @@
107107
html_context = {
108108
"github_user": "jupyterhub",
109109
"github_repo": "binderhub",
110-
"github_version": "master",
110+
"github_version": "main",
111111
"doc_path": "doc",
112112
}
113113

@@ -145,15 +145,15 @@
145145
# (source start file, target name, title,
146146
# author, documentclass [howto, manual, or own class]).
147147
latex_documents = [
148-
(master_doc, "BinderHub.tex", "BinderHub Documentation", "Yuvi Panda", "manual"),
148+
(root_doc, "BinderHub.tex", "BinderHub Documentation", "Yuvi Panda", "manual"),
149149
]
150150

151151

152152
# -- Options for manual page output ---------------------------------------
153153

154154
# One entry per manual page. List of tuples
155155
# (source start file, name, description, authors, manual section).
156-
man_pages = [(master_doc, "binderhub", "BinderHub Documentation", [author], 1)]
156+
man_pages = [(root_doc, "binderhub", "BinderHub Documentation", [author], 1)]
157157

158158

159159
# -- Options for Texinfo output -------------------------------------------
@@ -163,7 +163,7 @@
163163
# dir menu entry, description, category)
164164
texinfo_documents = [
165165
(
166-
master_doc,
166+
root_doc,
167167
"BinderHub",
168168
"BinderHub Documentation",
169169
author,

doc/customizing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Firstly assume that you have a Git repo ``binderhub_custom_files`` which holds y
7272
└── page.html
7373

7474
where ``page.html`` extends the `base page.html
75-
<https://github.com/jupyterhub/binderhub/blob/master/binderhub/templates/page.html>`_ and
75+
<https://github.com/jupyterhub/binderhub/blob/HEAD/binderhub/templates/page.html>`_ and
7676
updates only the source url of the logo in order to use your custom logo::
7777

7878
{% extends "templates/page.html" %}
@@ -82,7 +82,7 @@ updates only the source url of the logo in order to use your custom logo::
8282
.. note::
8383

8484
If you want to extend `any other base template
85-
<https://github.com/jupyterhub/binderhub/tree/master/binderhub/templates>`_,
85+
<https://github.com/jupyterhub/binderhub/tree/HEAD/binderhub/templates>`_,
8686
you have to include ``{% extends "templates/<base_template_name>.html" %}``
8787
in the beginning of your custom template.
8888
It is also possible to have completely new template instead of extending the base one.
@@ -98,7 +98,7 @@ To do that add the following into your ``config.yaml``::
9898
args:
9999
- clone
100100
- --single-branch
101-
- --branch=master
101+
- --branch=main
102102
- --depth=1
103103
- --
104104
- <repo_url>

doc/developer/repoproviders.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Currently supported providers, their prefixes and specs are:
2424
| GitHub | ``gh`` | ``<user>/<repo>/<commit-sha-or-tag-or-branch>`` | `GitHub <https://github.com/>`_ is a website for hosting and sharing git repositories. |
2525
+------------+--------------------+-------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
2626
| GitLab | ``gl`` | ``<url-escaped-namespace>/<unresolved_ref>`` | `GitLab <https://about.gitlab.com/>`_ offers hosted as well as self-hosted git repositories. |
27-
| | | (e.g. ``group%2Fproject%2Frepo/master``) | |
27+
| | | (e.g. ``group%2Fproject%2Frepo/main``) | |
2828
+------------+--------------------+-------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
2929
| Gist | ``gist`` | ``<github-username>/<gist-id><commit-sha-or-tag>`` | `Gists <https://gist.github.com/>`_ are small collections of files stored on GitHub. They behave like lightweight repositories. |
3030
+------------+--------------------+-------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
@@ -47,16 +47,16 @@ a BinderHub deployment to fetch repositories from new locations
4747
on the web. Doing so involves defining your own RepoProvider sub-class
4848
and modifying a set of methods/attributes to interface with the online
4949
provider to which you are providing access. It also often involves
50-
`building a new repo2docker content provider <https://github.com/jupyter/repo2docker/tree/master/repo2docker/contentproviders>`_.
50+
`building a new repo2docker content provider <https://github.com/jupyter/repo2docker/tree/HEAD/repo2docker/contentproviders>`_.
5151

5252
In order to extend the supported repository providers,
5353
follow these instructions. We'll provide example links for each step to a
5454
recent `BinderHub pull-request <https://github.com/jupyterhub/binderhub/pull/969>`_
5555
that implements the ``DataverseProvider`` class.
5656

57-
#. Review the `repoprovider module <https://github.com/jupyterhub/binderhub/blob/master/binderhub/repoproviders.py>`_.
57+
#. Review the `repoprovider module <https://github.com/jupyterhub/binderhub/blob/HEAD/binderhub/repoproviders.py>`_.
5858
This shows a number of example repository providers.
59-
#. Check whether repo2docker has a `ContentProvider class <https://github.com/jupyter/repo2docker/tree/master/repo2docker/contentproviders>`_
59+
#. Check whether repo2docker has a `ContentProvider class <https://github.com/jupyter/repo2docker/tree/HEAD/repo2docker/contentproviders>`_
6060
that will work with your repository provider. If not, then you'll need to create one first.
6161
#. Create a new class that sub-classes the ``RepoProvider`` class.
6262
Define your own methods for actions that are repository provider-specific.

doc/eventlogging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ Schemas:
5555
- `version 1 <https://github.com/jupyterhub/binderhub/blob/3da0f0c07eeea1b4517e5c7d1ec4a3166b3ca11c/binderhub/event-schemas/launch.json>`_
5656
- `version 2 <https://github.com/jupyterhub/binderhub/blob/5cc0f496cac98d6c9b7d645e6fb236fd1e5277f4/binderhub/event-schemas/launch.json>`_
5757
- `version 3 <https://github.com/jupyterhub/binderhub/blob/3bfee95f7c53d16604ea29f46b7e7c5aa1b49a63/binderhub/event-schemas/launch.json>`_
58-
- `version 4 <https://github.com/jupyterhub/binderhub/blob/master/binderhub/event-schemas/launch.json>`_
58+
- `version 4 <https://github.com/jupyterhub/binderhub/blob/HEAD/binderhub/event-schemas/launch.json>`_

0 commit comments

Comments
 (0)