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