Skip to content

Commit af97bce

Browse files
authored
Merge branch 'jupyterhub:main' into accessibility
2 parents 12d3ff0 + ea7b3c9 commit af97bce

File tree

16 files changed

+44
-43
lines changed

16 files changed

+44
-43
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
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:
@@ -47,7 +47,7 @@ jobs:
4747
uses: docker/setup-qemu-action@v2
4848

4949
- name: Set up Docker Buildx (for chartpress multi-arch builds)
50-
uses: docker/setup-buildx-action@95cb08cb2672c73d4ffd2f422e6d11953d2a9c70 # dependabot updates to latest release
50+
uses: docker/setup-buildx-action@v2
5151

5252
- name: Install chart publishing dependencies (chartpress, helm)
5353
run: |

.github/workflows/test-docker-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: docker/setup-qemu-action@v2
4848

4949
- name: Set up Docker Buildx (for chartpress multi-arch builds)
50-
uses: docker/setup-buildx-action@95cb08cb2672c73d4ffd2f422e6d11953d2a9c70 # dependabot updates to latest release
50+
uses: docker/setup-buildx-action@v2
5151

5252
- name: Build a multiple architecture Docker image
5353
run: |

.github/workflows/watch-dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
# ref: https://github.com/peter-evans/create-pull-request
7676
- name: Create a PR
7777
if: steps.local.outputs.tag != steps.latest.outputs.tag
78-
uses: peter-evans/create-pull-request@v4.1.3
78+
uses: peter-evans/create-pull-request@v4
7979
with:
8080
token: "${{ secrets.jupyterhub_bot_pat }}"
8181
author: JupterHub Bot Account <[email protected]>

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>

0 commit comments

Comments
 (0)