Repository: jupyterhub/binderhub
Pull request #1562 (2022-10-20 13:22:25)

build(deps): bump peter-evans/create-pull-request from 4.1.3 to 4.2.0
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4.1.3 to 4.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/peter-evans/create-pull-request/releases">peter-evans/create-pull-request's releases</a>.</em></p>
<blockquote>
<h2>Create Pull Request v4.2.0</h2>
<p>⚙️ Improves the proxy implementation to properly support the standard environment variables <code>http_proxy</code>, <code>https_proxy</code> and <code>no_proxy</code></p>
<h2>What's Changed</h2>
<ul>
<li>feat: switch proxy implementation by <a href="https://github.com/peter-evans"><code>@​peter-evans</code></a> in <a href="https://github-redirect.dependabot.com/peter-evans/create-pull-request/pull/1269">peter-evans/create-pull-request#1269</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/peter-evans/create-pull-request/compare/v4.1.4...v4.2.0">https://github.com/peter-evans/create-pull-request/compare/v4.1.4...v4.2.0</a></p>
<h2>Create Pull Request v4.1.4</h2>
<p>⚙️ Bumps <code>@actions/core</code> to transition away from <a href="https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/">deprecated runner commands</a>.</p>
<h2>What's Changed</h2>
<ul>
<li>build(deps): bump <code>@​actions/core</code> to 1.10.0 by <a href="https://github.com/peter-evans"><code>@​peter-evans</code></a> in <a href="https://github-redirect.dependabot.com/peter-evans/create-pull-request/pull/1274">peter-evans/create-pull-request#1274</a></li>
<li>build(deps): bump <code>@​actions/exec</code> from 1.1.0 to 1.1.1 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://github-redirect.dependabot.com/peter-evans/create-pull-request/pull/1279">peter-evans/create-pull-request#1279</a></li>
<li>build(deps): bump <code>@​actions/io</code> from 1.1.1 to 1.1.2 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://github-redirect.dependabot.com/peter-evans/create-pull-request/pull/1280">peter-evans/create-pull-request#1280</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/peter-evans/create-pull-request/compare/v4.1.3...v4.1.4">https://github.com/peter-evans/create-pull-request/compare/v4.1.3...v4.1.4</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/peter-evans/create-pull-request/commit/b4d51739f96fca8047ad065eccef63442d8e99f7"><code>b4d5173</code></a> feat: switch proxy implementation (<a href="https://github-redirect.dependabot.com/peter-evans/create-pull-request/issues/1269">#1269</a>)</li>
<li><a href="https://github.com/peter-evans/create-pull-request/commit/ad43dccb4d726ca8514126628bec209b8354b6dd"><code>ad43dcc</code></a> build(deps): bump <code>@​actions/io</code> from 1.1.1 to 1.1.2 (<a href="https://github-redirect.dependabot.com/peter-evans/create-pull-request/issues/1280">#1280</a>)</li>
<li><a href="https://github.com/peter-evans/create-pull-request/commit/c2f9cef04d2ae7c1b71a6c5acdff3421b6c22cae"><code>c2f9cef</code></a> build(deps): bump <code>@​actions/exec</code> from 1.1.0 to 1.1.1 (<a href="https://github-redirect.dependabot.com/peter-evans/create-pull-request/issues/1279">#1279</a>)</li>
<li><a href="https://github.com/peter-evans/create-pull-request/commit/b67934cbcf2c3a1c3c890acdd93be870f33f04b0"><code>b67934c</code></a> ci: update dependabot</li>
<li><a href="https://github.com/peter-evans/create-pull-request/commit/ef8302333972a91164a6c3b0edfb4e7e85df4f07"><code>ef83023</code></a> build(deps): bump <code>@​actions/core</code> to 1.10.0 (<a href="https://github-redirect.dependabot.com/peter-evans/create-pull-request/issues/1274">#1274</a>)</li>
<li>See full diff in <a href="https://github.com/peter-evans/create-pull-request/compare/v4.1.3...v4.2.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=peter-evans/create-pull-request&package-manager=github_actions&previous-version=4.1.3&new-version=4.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Patch:
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 71c5808a..1b4e54a4 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -33,7 +33,7 @@ jobs:
   #
   Publish:
     runs-on: ubuntu-latest
-    if: startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main')
+    if: startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/master')
     steps:
       - uses: actions/checkout@v3
         with:
diff --git a/.github/workflows/watch-dependencies.yaml b/.github/workflows/watch-dependencies.yaml
index 5a581171..8ab8596e 100644
--- a/.github/workflows/watch-dependencies.yaml
+++ b/.github/workflows/watch-dependencies.yaml
@@ -75,7 +75,7 @@ jobs:
       # ref: https://github.com/peter-evans/create-pull-request
       - name: Create a PR
         if: steps.local.outputs.tag != steps.latest.outputs.tag
-        uses: peter-evans/create-pull-request@v4.1.3
+        uses: peter-evans/create-pull-request@v4
         with:
           token: "${{ secrets.jupyterhub_bot_pat }}"
           author: JupterHub Bot Account <105740858+jupyterhub-bot@users.noreply.github.com>
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 219266e4..4042ca4b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -283,7 +283,7 @@ You are assumed to have a modern version of [Python](https://www.python.org/),
 1. Install `helm` - the Kubernetes package manager.
 
    ```bash
-   curl -sf https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
+   curl -sf https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
    ```
 
    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
 repository](https://jupyterhub.github.io/helm-chart/).
 
 Use the [JupyterHub Helm chart's
-changelog](https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/HEAD/CHANGELOG.md)
+changelog](https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/master/CHANGELOG.md)
 to prepare for breaking changes associated with the version bump.
 
 ### Releasing
diff --git a/README.md b/README.md
index f352f86f..735937bd 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
 [![GitHub](https://img.shields.io/badge/issue_tracking-github-blue.svg)](https://github.com/jupyterhub/binderhub/issues)
 [![Discourse](https://img.shields.io/badge/help_forum-discourse-blue.svg)](https://discourse.jupyter.org/c/binder/binderhub)
 [![Gitter](https://img.shields.io/badge/social_chat-gitter-blue.svg)](https://gitter.im/jupyterhub/binder)
-[![Contribute](https://img.shields.io/badge/I_want_to_contribute!-grey?logo=jupyter)](https://github.com/jupyterhub/binderhub/blob/HEAD/CONTRIBUTING.md)
+[![Contribute](https://img.shields.io/badge/I_want_to_contribute!-grey?logo=jupyter)](https://github.com/jupyterhub/binderhub/blob/master/CONTRIBUTING.md)
 
 ## What is BinderHub?
 
@@ -44,7 +44,7 @@ To contribute to the BinderHub project you can work on:
 
 To see how to build the documentation, edit the user interface or modify
 the code see [the contribution
-guide](https://github.com/jupyterhub/binderhub/blob/HEAD/CONTRIBUTING.md).
+guide](https://github.com/jupyterhub/binderhub/blob/master/CONTRIBUTING.md).
 
 ## Installation
 
diff --git a/binderhub/repoproviders.py b/binderhub/repoproviders.py
index 4169f34e..256d4985 100644
--- a/binderhub/repoproviders.py
+++ b/binderhub/repoproviders.py
@@ -38,8 +38,8 @@ def tokenize_spec(spec):
     spec_parts = spec.split("/", 2)  # allow ref to contain "/"
     if len(spec_parts) != 3:
         msg = f'Spec is not of the form "user/repo/ref", provided: "{spec}".'
-        if len(spec_parts) == 2 and spec_parts[-1] not in ("main", "master"):
-            msg += f' Did you mean "{spec}/main"?'
+        if len(spec_parts) == 2 and spec_parts[-1] != "master":
+            msg += f' Did you mean "{spec}/master"?'
         raise ValueError(msg)
 
     return spec_parts
@@ -456,8 +456,8 @@ class GitRepoProvider(RepoProvider):
     <url-escaped-namespace>/<resolved_ref>
 
     eg:
-    https%3A%2F%2Fgithub.com%2Fbinder-examples%2Fconda/main
-    https%3A%2F%2Fgithub.com%2Fbinder-examples%2Fconda/034931911e853252322f2309f1246a4f1076fd7d
+    https%3A%2F%2Fgithub.com%2Fjupyterhub%2Fzero-to-jupyterhub-k8s/master
+    https%3A%2F%2Fgithub.com%2Fjupyterhub%2Fzero-to-jupyterhub-k8s/f7f3ff6d1bf708bdc12e5f10e18b2a90a4795603
 
     This provider is typically used if you are deploying binderhub yourself and you require access to repositories that
     are not in one of the supported providers.
@@ -957,7 +957,6 @@ class GistRepoProvider(GitHubRepoProvider):
     The ref is optional, valid values are
         - a full sha1 of a ref in the history
         - master
-        - HEAD for the default branch
 
     If master or no ref is specified the latest revision will be used.
     """
diff --git a/ci/common b/ci/common
index c0b1eddc..1c81663b 100755
--- a/ci/common
+++ b/ci/common
@@ -4,7 +4,7 @@
 setup_helm() {
     helm_version="${1}"
     echo "setup helm ${helm_version}"
-    curl -sf https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | DESIRED_VERSION="${helm_version}" bash
+    curl -sf https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | DESIRED_VERSION="${helm_version}" bash
 }
 
 await_jupyterhub() {
diff --git a/doc/conf.py b/doc/conf.py
index e2fbb0d2..9278ce62 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -57,8 +57,8 @@ templates_path = ["_templates"]
 # You can specify multiple suffix as a list of string:
 source_suffix = [".rst", ".md"]
 
-# The root toctree document.
-root_doc = "index"
+# The master toctree document.
+master_doc = "index"
 
 # Set the default role so we can use `foo` instead of ``foo``
 default_role = "literal"
@@ -107,7 +107,7 @@ html_theme_options = {
 html_context = {
     "github_user": "jupyterhub",
     "github_repo": "binderhub",
-    "github_version": "main",
+    "github_version": "master",
     "doc_path": "doc",
 }
 
@@ -145,7 +145,7 @@ latex_elements = {
 # (source start file, target name, title,
 #  author, documentclass [howto, manual, or own class]).
 latex_documents = [
-    (root_doc, "BinderHub.tex", "BinderHub Documentation", "Yuvi Panda", "manual"),
+    (master_doc, "BinderHub.tex", "BinderHub Documentation", "Yuvi Panda", "manual"),
 ]
 
 
@@ -153,7 +153,7 @@ latex_documents = [
 
 # One entry per manual page. List of tuples
 # (source start file, name, description, authors, manual section).
-man_pages = [(root_doc, "binderhub", "BinderHub Documentation", [author], 1)]
+man_pages = [(master_doc, "binderhub", "BinderHub Documentation", [author], 1)]
 
 
 # -- Options for Texinfo output -------------------------------------------
@@ -163,7 +163,7 @@ man_pages = [(root_doc, "binderhub", "BinderHub Documentation", [author], 1)]
 #  dir menu entry, description, category)
 texinfo_documents = [
     (
-        root_doc,
+        master_doc,
         "BinderHub",
         "BinderHub Documentation",
         author,
diff --git a/doc/customizing.rst b/doc/customizing.rst
index c660ede3..b518b916 100644
--- a/doc/customizing.rst
+++ b/doc/customizing.rst
@@ -72,7 +72,7 @@ Firstly assume that you have a Git repo ``binderhub_custom_files`` which holds y
         └── page.html
 
 where ``page.html`` extends the `base page.html
-<https://github.com/jupyterhub/binderhub/blob/HEAD/binderhub/templates/page.html>`_ and
+<https://github.com/jupyterhub/binderhub/blob/master/binderhub/templates/page.html>`_ and
 updates only the source url of the logo in order to use your custom logo::
 
     {% extends "templates/page.html" %}
@@ -82,7 +82,7 @@ updates only the source url of the logo in order to use your custom logo::
 .. note::
 
     If you want to extend `any other base template
-    <https://github.com/jupyterhub/binderhub/tree/HEAD/binderhub/templates>`_,
+    <https://github.com/jupyterhub/binderhub/tree/master/binderhub/templates>`_,
     you have to include ``{% extends "templates/<base_template_name>.html" %}``
     in the beginning of your custom template.
     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``::
         args:
           - clone
           - --single-branch
-          - --branch=main
+          - --branch=master
           - --depth=1
           - --
           - <repo_url>
diff --git a/doc/developer/repoproviders.rst b/doc/developer/repoproviders.rst
index 0795933a..36c521ae 100644
--- a/doc/developer/repoproviders.rst
+++ b/doc/developer/repoproviders.rst
@@ -24,7 +24,7 @@ Currently supported providers, their prefixes and specs are:
     | GitHub     | ``gh``             | ``<user>/<repo>/<commit-sha-or-tag-or-branch>``             | `GitHub <https://github.com/>`_ is a website for hosting and sharing git repositories.                                                    |
     +------------+--------------------+-------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
     | GitLab     | ``gl``             | ``<url-escaped-namespace>/<unresolved_ref>``                | `GitLab <https://about.gitlab.com/>`_ offers hosted as well as self-hosted git repositories.                                              |
-    |            |                    | (e.g. ``group%2Fproject%2Frepo/main``)                    |                                                                                                                                           |
+    |            |                    | (e.g. ``group%2Fproject%2Frepo/master``)                    |                                                                                                                                           |
     +------------+--------------------+-------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
     | 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.           |
     +------------+--------------------+-------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
@@ -47,16 +47,16 @@ a BinderHub deployment to fetch repositories from new locations
 on the web. Doing so involves defining your own RepoProvider sub-class
 and modifying a set of methods/attributes to interface with the online
 provider to which you are providing access. It also often involves
-`building a new repo2docker content provider <https://github.com/jupyter/repo2docker/tree/HEAD/repo2docker/contentproviders>`_.
+`building a new repo2docker content provider <https://github.com/jupyter/repo2docker/tree/master/repo2docker/contentproviders>`_.
 
 In order to extend the supported repository providers,
 follow these instructions. We'll provide example links for each step to a
 recent `BinderHub pull-request <https://github.com/jupyterhub/binderhub/pull/969>`_
 that implements the ``DataverseProvider`` class.
 
-#. Review the `repoprovider module <https://github.com/jupyterhub/binderhub/blob/HEAD/binderhub/repoproviders.py>`_.
+#. Review the `repoprovider module <https://github.com/jupyterhub/binderhub/blob/master/binderhub/repoproviders.py>`_.
    This shows a number of example repository providers.
-#. Check whether repo2docker has a `ContentProvider class <https://github.com/jupyter/repo2docker/tree/HEAD/repo2docker/contentproviders>`_
+#. Check whether repo2docker has a `ContentProvider class <https://github.com/jupyter/repo2docker/tree/master/repo2docker/contentproviders>`_
    that will work with your repository provider. If not, then you'll need to create one first.
 #. Create a new class that sub-classes the ``RepoProvider`` class.
    Define your own methods for actions that are repository provider-specific.
diff --git a/doc/eventlogging.rst b/doc/eventlogging.rst
index 247bd8dd..231ed760 100644
--- a/doc/eventlogging.rst
+++ b/doc/eventlogging.rst
@@ -55,4 +55,4 @@ Schemas:
 - `version 1 <https://github.com/jupyterhub/binderhub/blob/3da0f0c07eeea1b4517e5c7d1ec4a3166b3ca11c/binderhub/event-schemas/launch.json>`_
 - `version 2 <https://github.com/jupyterhub/binderhub/blob/5cc0f496cac98d6c9b7d645e6fb236fd1e5277f4/binderhub/event-schemas/launch.json>`_
 - `version 3 <https://github.com/jupyterhub/binderhub/blob/3bfee95f7c53d16604ea29f46b7e7c5aa1b49a63/binderhub/event-schemas/launch.json>`_
-- `version 4 <https://github.com/jupyterhub/binderhub/blob/HEAD/binderhub/event-schemas/launch.json>`_
+- `version 4 <https://github.com/jupyterhub/binderhub/blob/master/binderhub/event-schemas/launch.json>`_
diff --git a/doc/zero-to-binderhub/setup-prerequisites.rst b/doc/zero-to-binderhub/setup-prerequisites.rst
index 114f83e3..6a0132d2 100644
--- a/doc/zero-to-binderhub/setup-prerequisites.rst
+++ b/doc/zero-to-binderhub/setup-prerequisites.rst
@@ -31,12 +31,12 @@ render the templates into valid k8s resources. Each installation of a chart is
 called a *release*, and each version of the release is called a *revision*.
 
 Several `methods to install Helm
-<https://helm.sh/docs/intro/install/>`_ exist, the simplest
+<https://github.com/helm/helm/blob/master/docs/install.md>`_ exist, the simplest
 way to install Helm is to run Helm's installer script in a terminal.
 
 .. code:: bash
 
-   curl -sf https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
+   curl -sf https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
 
 Verifying the setup
 ~~~~~~~~~~~~~~~~~~~
diff --git a/examples/appendix/binderhub_config.py b/examples/appendix/binderhub_config.py
index b18e8e70..f41e3b80 100644
--- a/examples/appendix/binderhub_config.py
+++ b/examples/appendix/binderhub_config.py
@@ -3,7 +3,7 @@ USER root
 ENV BINDER_URL={binder_url}
 ENV REPO_URL={repo_url}
 RUN cd /tmp \
- && wget -q https://github.com/jupyterhub/binderhub/archive/main.tar.gz -O binderhub.tar.gz \
+ && wget -q https://github.com/jupyterhub/binderhub/archive/master.tar.gz -O binderhub.tar.gz \
  && tar --wildcards -xzf binderhub.tar.gz --strip 2 */examples/appendix\
  && ./appendix/run-appendix \
  && rm -rf binderhub.tar.gz appendix
diff --git a/helm-chart/README.md b/helm-chart/README.md
index 46b3f3f4..e2cb98f9 100644
--- a/helm-chart/README.md
+++ b/helm-chart/README.md
@@ -52,6 +52,6 @@ to build the docker images and rerender the helm chart.
 [kubernetes]: https://kubernetes.io
 [helm]: https://helm.sh/
 [helm repo]: https://github.com/kubernetes/helm
-[chart]: https://helm.sh/docs/topics/charts/
-[kubernetes introduction to charts]: https://helm.sh/docs/topics/charts/
+[chart]: https://github.com/kubernetes/helm/blob/master/docs/charts.md
+[kubernetes introduction to charts]: https://github.com/kubernetes/helm/blob/master/docs/charts.md
 [zero to jupyterhub with kubernetes]: https://zero-to-jupyterhub.readthedocs.io/en/latest/


Test patch:
diff --git a/binderhub/tests/test_repoproviders.py b/binderhub/tests/test_repoproviders.py
index 91b70fb4..9130d181 100644
--- a/binderhub/tests/test_repoproviders.py
+++ b/binderhub/tests/test_repoproviders.py
@@ -367,7 +367,7 @@ class TestSpecErrorHandling(TestCase):
 
     def test_spec_with_suggestion(self):
         spec = "short/suggestion"
-        error = f'Did you mean "{spec}/main"?'
+        error = f'Did you mean "{spec}/master"?'
         with self.assertRaisesRegex(ValueError, error):
             user, repo, unresolved_ref = tokenize_spec(spec)