Skip to content

Commit f7e8aca

Browse files
chore(python): rename default branch to main (#563)
1 parent cfe4a5c commit f7e8aca

File tree

5 files changed

+10
-38
lines changed

5 files changed

+10
-38
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
docker:
22
image: gcr.io/repo-automation-bots/owlbot-python:latest
3-
digest: sha256:d6761eec279244e57fe9d21f8343381a01d3632c034811a72f68b83119e58c69
3+
digest: sha256:0ffe3bdd6c7159692df5f7744da74e5ef19966288a6bf76023e8e04e0c424d7d

packages/google-cloud-spanner/CONTRIBUTING.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ Coding Style
113113
export GOOGLE_CLOUD_TESTING_BRANCH="main"
114114

115115
By doing this, you are specifying the location of the most up-to-date
116-
version of ``python-spanner``. The the suggested remote name ``upstream``
117-
should point to the official ``googleapis`` checkout and the
118-
the branch should be the main branch on that remote (``main``).
116+
version of ``python-spanner``. The
117+
remote name ``upstream`` should point to the official ``googleapis``
118+
checkout and the branch should be the default branch on that remote (``main``).
119119

120120
- This repository contains configuration for the
121121
`pre-commit <https://pre-commit.com/>`__ tool, which automates checking

packages/google-cloud-spanner/docs/conf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
# The encoding of source files.
7777
# source_encoding = 'utf-8-sig'
7878

79-
# The master toctree document.
80-
master_doc = "index"
79+
# The root toctree document.
80+
root_doc = "index"
8181

8282
# General information about the project.
8383
project = "google-cloud-spanner"
@@ -280,7 +280,7 @@
280280
# author, documentclass [howto, manual, or own class]).
281281
latex_documents = [
282282
(
283-
master_doc,
283+
root_doc,
284284
"google-cloud-spanner.tex",
285285
"google-cloud-spanner Documentation",
286286
author,
@@ -315,7 +315,7 @@
315315
# (source start file, name, description, authors, manual section).
316316
man_pages = [
317317
(
318-
master_doc,
318+
root_doc,
319319
"google-cloud-spanner",
320320
"google-cloud-spanner Documentation",
321321
[author],
@@ -334,7 +334,7 @@
334334
# dir menu entry, description, category)
335335
texinfo_documents = [
336336
(
337-
master_doc,
337+
root_doc,
338338
"google-cloud-spanner",
339339
"google-cloud-spanner Documentation",
340340
author,

packages/google-cloud-spanner/owlbot.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -249,32 +249,3 @@ def place_before(path, text, *before_text, escape=None):
249249
)
250250

251251
s.shell.run(["nox", "-s", "blacken"], hide_output=False)
252-
253-
# ----------------------------------------------------------------------------
254-
# Main Branch migration
255-
# ----------------------------------------------------------------------------
256-
257-
s.replace(
258-
"*.rst",
259-
"master",
260-
"main"
261-
)
262-
263-
s.replace(
264-
"*.rst",
265-
"google-cloud-python/blob/main",
266-
"google-cloud-python/blob/master"
267-
)
268-
269-
s.replace(
270-
"CONTRIBUTING.rst",
271-
"kubernetes/community/blob/main",
272-
"kubernetes/community/blob/master"
273-
)
274-
275-
s.replace(
276-
".kokoro/*",
277-
"master",
278-
"main"
279-
)
280-

packages/google-cloud-spanner/renovate.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": [
33
"config:base",
4+
"group:all",
45
":preserveSemverRanges",
56
":disableDependencyDashboard"
67
],

0 commit comments

Comments
 (0)