Skip to content

Commit 4e45fc3

Browse files
authored
chore: migrate default branch from master to main (#260)
1 parent fcc24fc commit 4e45fc3

File tree

6 files changed

+20
-8
lines changed

6 files changed

+20
-8
lines changed

.kokoro/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ python3 -m pip install --upgrade --quiet nox
4141
python3 -m nox --version
4242

4343
# If this is a continuous build, send the test log to the FlakyBot.
44-
# See https://github.com/googleapis/repo-automation-bots/tree/master/packages/flakybot.
44+
# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
4545
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then
4646
cleanup() {
4747
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot

.kokoro/test-samples-impl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ for file in samples/**/requirements.txt; do
8080
EXIT=$?
8181

8282
# If this is a periodic build, send the test log to the FlakyBot.
83-
# See https://github.com/googleapis/repo-automation-bots/tree/master/packages/flakybot.
83+
# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
8484
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then
8585
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot
8686
$KOKORO_GFILE_DIR/linux_amd64/flakybot

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ might break the hypothetical usecase of downloading a blob marked with
218218
- Modify file not found test to look for the correct error message
219219
- Harden tests so they can run with debug logging statements
220220
- Add Appveyor support. ([#40](https://github.com/googleapis/google-resumable-media-python/pull/40))
221-
- Mark the version in `master` as `.dev1`.
221+
- Mark the version in `main` as `.dev1`.
222222

223223

224224
## 0.3.1

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ License
3131

3232
Apache 2.0 - See `the LICENSE`_ for more information.
3333

34-
.. _the LICENSE: https://github.com/googleapis/google-resumable-media-python/blob/master/LICENSE
34+
.. _the LICENSE: https://github.com/googleapis/google-resumable-media-python/blob/main/LICENSE

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
# source_encoding = 'utf-8-sig'
6565

6666
# The main toctree document.
67-
master_doc = "index"
67+
root_doc = "index"
6868

6969
# General information about the project.
7070
project = u"google-resumable-media"
@@ -266,7 +266,7 @@
266266
# author, documentclass [howto, manual, or own class]).
267267
latex_documents = [
268268
(
269-
master_doc,
269+
root_doc,
270270
"google-resumable-media.tex",
271271
u"google-resumable-media Documentation",
272272
author,
@@ -301,7 +301,7 @@
301301
# (source start file, name, description, authors, manual section).
302302
man_pages = [
303303
(
304-
master_doc,
304+
root_doc,
305305
"google-resumable-media",
306306
u"google-resumable-media Documentation",
307307
[author],
@@ -320,7 +320,7 @@
320320
# dir menu entry, description, category)
321321
texinfo_documents = [
322322
(
323-
master_doc,
323+
root_doc,
324324
"google-resumable-media",
325325
u"google-resumable-media Documentation",
326326
author,

owlbot.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,16 @@
2121
r'value: "docs-staging-v2-staging"'
2222
)
2323

24+
25+
# Remove the replacements below once https://github.com/googleapis/synthtool/pull/1188 is merged
26+
27+
# Update googleapis/repo-automation-bots repo to main in .kokoro/*.sh files
28+
s.replace(".kokoro/*.sh", "repo-automation-bots/tree/master", "repo-automation-bots/tree/main")
29+
30+
s.replace(
31+
"docs/conf.py",
32+
"master_doc",
33+
"root_doc",
34+
)
35+
2436
s.shell.run(["nox", "-s", "blacken"], hide_output=False)

0 commit comments

Comments
 (0)