|
71 | 71 |
|
72 | 72 | python.py_samples(skip_readmes=True) |
73 | 73 |
|
74 | | -# Remove the replacements below once https://github.com/googleapis/synthtool/pull/1188 is merged |
75 | | - |
76 | | -# Update googleapis/repo-automation-bots repo to main in .kokoro/*.sh files |
77 | | -s.replace(".kokoro/*.sh", "repo-automation-bots/tree/master", "repo-automation-bots/tree/main") |
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", |
88 | | - "git merge upstream/master", |
89 | | - "git merge upstream/main", |
90 | | -) |
91 | | - |
92 | | -s.replace( |
93 | | - "CONTRIBUTING.rst", |
94 | | - """export GOOGLE_CLOUD_TESTING_BRANCH=\"master\"""", |
95 | | - """export GOOGLE_CLOUD_TESTING_BRANCH=\"main\"""", |
96 | | -) |
97 | | - |
98 | | -s.replace( |
99 | | - "CONTRIBUTING.rst", |
100 | | - "remote \(``master``\)", |
101 | | - "remote (``main``)", |
102 | | -) |
103 | | - |
104 | | -s.replace( |
105 | | - "CONTRIBUTING.rst", |
106 | | - "blob/master/CONTRIBUTING.rst", |
107 | | - "blob/main/CONTRIBUTING.rst", |
108 | | -) |
109 | | - |
110 | | -s.replace( |
111 | | - "CONTRIBUTING.rst", |
112 | | - "blob/master/noxfile.py", |
113 | | - "blob/main/noxfile.py", |
114 | | -) |
115 | | - |
116 | | -s.replace( |
117 | | - "docs/conf.py", |
118 | | - "master_doc", |
119 | | - "root_doc", |
120 | | -) |
121 | | - |
122 | | -s.replace( |
123 | | - "docs/conf.py", |
124 | | - "# The master toctree document.", |
125 | | - "# The root toctree document.", |
126 | | -) |
127 | | - |
128 | 74 | # This is being added to AutoML because the proto comments are long and |
129 | 75 | # regex replaces are a brittle temporary solution. |
130 | 76 | s.replace( |
|
0 commit comments