|
44 | 44 | """,
|
45 | 45 | )
|
46 | 46 |
|
47 |
| -# Remove the replacements below once https://github.com/googleapis/synthtool/pull/1188 is merged |
48 |
| - |
49 |
| -# Update googleapis/repo-automation-bots repo to main in .kokoro/*.sh files |
50 |
| -s.replace( |
51 |
| - ".kokoro/*.sh", "repo-automation-bots/tree/master", "repo-automation-bots/tree/main" |
52 |
| -) |
53 |
| - |
54 |
| -# Customize CONTRIBUTING.rst to replace master with main |
55 |
| -s.replace( |
56 |
| - "CONTRIBUTING.rst", |
57 |
| - "fetch and merge changes from upstream into master", |
58 |
| - "fetch and merge changes from upstream into main", |
59 |
| -) |
60 |
| - |
61 |
| -s.replace( |
62 |
| - "CONTRIBUTING.rst", "git merge upstream/master", "git merge upstream/main", |
63 |
| -) |
64 |
| - |
65 |
| -s.replace( |
66 |
| - "CONTRIBUTING.rst", |
67 |
| - """export GOOGLE_CLOUD_TESTING_BRANCH=\"master\"""", |
68 |
| - """export GOOGLE_CLOUD_TESTING_BRANCH=\"main\"""", |
69 |
| -) |
70 |
| - |
71 |
| -s.replace( |
72 |
| - "CONTRIBUTING.rst", r"remote \(``master``\)", "remote (``main``)", |
73 |
| -) |
74 |
| - |
75 |
| -s.replace( |
76 |
| - "CONTRIBUTING.rst", "blob/master/CONTRIBUTING.rst", "blob/main/CONTRIBUTING.rst", |
77 |
| -) |
78 |
| - |
79 |
| -s.replace( |
80 |
| - "CONTRIBUTING.rst", "blob/master/noxfile.py", "blob/main/noxfile.py", |
81 |
| -) |
82 |
| - |
83 |
| -s.replace( |
84 |
| - "docs/conf.py", "master_doc", "root_doc", |
85 |
| -) |
86 |
| - |
87 |
| -s.replace( |
88 |
| - "docs/conf.py", "# The master toctree document.", "# The root toctree document.", |
89 |
| -) |
90 |
| - |
91 |
| - |
92 | 47 | s.shell.run(["nox", "-s", "blacken"], hide_output=False)
|
0 commit comments