Skip to content

Commit 3b3c7b5

Browse files
committed
Add owlbot replacements to persist changes
1 parent 0a641d0 commit 3b3c7b5

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

owlbot.py

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,57 @@
6666
"type ",
6767
)
6868

69+
# Remove the replacements below once
70+
# https://github.com/googleapis/synthtool/pull/1188 is merged
71+
72+
# Update googleapis/repo-automation-bots repo to main in .kokoro/*.sh files
73+
s.replace(
74+
".kokoro/*.sh",
75+
"repo-automation-bots/tree/master",
76+
"repo-automation-bots/tree/main",
77+
)
78+
79+
# Customize CONTRIBUTING.rst to replace master with main
80+
s.replace(
81+
"CONTRIBUTING.rst",
82+
"fetch and merge changes from upstream into master",
83+
"fetch and merge changes from upstream into main",
84+
)
85+
86+
s.replace(
87+
"CONTRIBUTING.rst", "git merge upstream/master", "git merge upstream/main",
88+
)
89+
90+
s.replace(
91+
"CONTRIBUTING.rst",
92+
"""export GOOGLE_CLOUD_TESTING_BRANCH=\"master\"""",
93+
"""export GOOGLE_CLOUD_TESTING_BRANCH=\"main\"""",
94+
)
95+
96+
s.replace(
97+
"CONTRIBUTING.rst", r"remote \(``master``\)", "remote (``main``)",
98+
)
99+
100+
s.replace(
101+
"CONTRIBUTING.rst",
102+
"blob/master/CONTRIBUTING.rst",
103+
"blob/main/CONTRIBUTING.rst",
104+
)
105+
106+
s.replace(
107+
"CONTRIBUTING.rst", "blob/master/noxfile.py", "blob/main/noxfile.py",
108+
)
109+
110+
s.replace(
111+
"docs/conf.py", "master_doc", "root_doc",
112+
)
113+
114+
s.replace(
115+
"docs/conf.py",
116+
"# The master toctree document.",
117+
"# The root toctree document.",
118+
)
119+
69120
s.move(
70121
library,
71122
excludes=[

0 commit comments

Comments
 (0)