Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit dd0a0c8

Browse filesBrowse files
chore(python): rename default branch to main (#24)
1 parent 1180330 commit dd0a0c8
Copy full SHA for dd0a0c8

File tree

Expand file treeCollapse file tree

3 files changed

+6
-57
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+6
-57
lines changed

‎.github/.OwlBot.lock.yaml

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
docker:
22
image: gcr.io/repo-automation-bots/owlbot-python:latest
3-
digest: sha256:1456ea2b3b523ccff5e13030acef56d1de28f21249c62aa0f196265880338fa7
3+
digest: sha256:0ffe3bdd6c7159692df5f7744da74e5ef19966288a6bf76023e8e04e0c424d7d

‎CONTRIBUTING.rst

Copy file name to clipboardExpand all lines: CONTRIBUTING.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ Coding Style
113113
export GOOGLE_CLOUD_TESTING_BRANCH="main"
114114

115115
By doing this, you are specifying the location of the most up-to-date
116-
version of ``python-source-context``. The the suggested remote name ``upstream``
117-
should point to the official ``googleapis`` checkout and the
118-
the branch should be the main branch on that remote (``main``).
116+
version of ``python-source-context``. The
117+
remote name ``upstream`` should point to the official ``googleapis``
118+
checkout and the branch should be the default branch on that remote (``main``).
119119

120120
- This repository contains configuration for the
121121
`pre-commit <https://pre-commit.com/>`__ tool, which automates checking

‎owlbot.py

Copy file name to clipboardExpand all lines: owlbot.py
+2-53Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -31,61 +31,10 @@
3131
# ----------------------------------------------------------------------------
3232

3333
templated_files = gcp.CommonTemplates().py_library(microgenerator=True)
34-
python.py_samples(skip_readmes=True)
35-
s.move(templated_files, excludes=[".coveragerc"]) # the microgenerator has a good coveragerc file
36-
# Remove the replacements below once https://github.com/googleapis/synthtool/pull/1188 is merged
37-
38-
# Update googleapis/repo-automation-bots repo to main in .kokoro/*.sh files
39-
s.replace(".kokoro/*.sh", "repo-automation-bots/tree/master", "repo-automation-bots/tree/main")
40-
41-
# Customize CONTRIBUTING.rst to replace master with main
42-
s.replace(
43-
"CONTRIBUTING.rst",
44-
"fetch and merge changes from upstream into master",
45-
"fetch and merge changes from upstream into main",
46-
)
47-
48-
s.replace(
49-
"CONTRIBUTING.rst",
50-
"git merge upstream/master",
51-
"git merge upstream/main",
52-
)
53-
54-
s.replace(
55-
"CONTRIBUTING.rst",
56-
"""export GOOGLE_CLOUD_TESTING_BRANCH=\"master\"""",
57-
"""export GOOGLE_CLOUD_TESTING_BRANCH=\"main\"""",
58-
)
5934

60-
s.replace(
61-
"CONTRIBUTING.rst",
62-
"remote \(``master``\)",
63-
"remote (``main``)",
64-
)
65-
66-
s.replace(
67-
"CONTRIBUTING.rst",
68-
"blob/master/CONTRIBUTING.rst",
69-
"blob/main/CONTRIBUTING.rst",
70-
)
71-
72-
s.replace(
73-
"CONTRIBUTING.rst",
74-
"blob/master/noxfile.py",
75-
"blob/main/noxfile.py",
76-
)
77-
78-
s.replace(
79-
"docs/conf.py",
80-
"master_doc",
81-
"root_doc",
82-
)
35+
s.move(templated_files, excludes=[".coveragerc"]) # the microgenerator has a good coveragerc file
8336

84-
s.replace(
85-
"docs/conf.py",
86-
"# The master toctree document.",
87-
"# The root toctree document.",
88-
)
37+
python.py_samples(skip_readmes=True)
8938

9039
# ----------------------------------------------------------------------------
9140
# Run blacken session

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.