Skip to content

Commit f1dbecf

Browse files
dandhleegcf-owl-bot[bot]parthea
authored
chore: migrate to main branch (#126)
* chore: migrate to main branch * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 6e3a3a6 commit f1dbecf

File tree

7 files changed

+45
-16
lines changed

7 files changed

+45
-16
lines changed

packages/google-cloud-trace/.github/sync-repo-settings.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# https://github.com/googleapis/repo-automation-bots/tree/master/packages/sync-repo-settings
2-
# Rules for master branch protection
1+
# https://github.com/googleapis/repo-automation-bots/tree/main/packages/sync-repo-settings
2+
# Rules for main branch protection
33
branchProtectionRules:
44
# Identifies the protection rule pattern. Name of the branch to be protected.
5-
# Defaults to `master`
6-
- pattern: master
5+
# Defaults to `main`
6+
- pattern: main
77
requiresCodeOwnerReviews: true
88
requiresStrictStatusChecks: true
99
requiredStatusCheckContexts:

packages/google-cloud-trace/.kokoro/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ python3 -m pip install --upgrade --quiet nox
4141
python3 -m nox --version
4242

4343
# If this is a continuous build, send the test log to the FlakyBot.
44-
# See https://github.com/googleapis/repo-automation-bots/tree/master/packages/flakybot.
44+
# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
4545
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then
4646
cleanup() {
4747
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot

packages/google-cloud-trace/.kokoro/test-samples-impl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ for file in samples/**/requirements.txt; do
8080
EXIT=$?
8181

8282
# If this is a periodic build, send the test log to the FlakyBot.
83-
# See https://github.com/googleapis/repo-automation-bots/tree/master/packages/flakybot.
83+
# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
8484
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then
8585
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot
8686
$KOKORO_GFILE_DIR/linux_amd64/flakybot

packages/google-cloud-trace/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
### ⚠ BREAKING CHANGES
8585

86-
* migrate to microgenerator. See [Migration Guide](https://github.com/googleapis/python-trace/blob/master/UPGRADING.md) (#29)
86+
* migrate to microgenerator. See [Migration Guide](https://github.com/googleapis/python-trace/blob/main/UPGRADING.md) (#29)
8787

8888
### Features
8989

packages/google-cloud-trace/CONTRIBUTING.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ You'll have to create a development environment using a Git checkout:
5050
# Configure remotes such that you can pull changes from the googleapis/python-trace
5151
# repository into your local repository.
5252
$ git remote add upstream [email protected]:googleapis/python-trace.git
53-
# fetch and merge changes from upstream into master
53+
# fetch and merge changes from upstream into main
5454
$ git fetch upstream
55-
$ git merge upstream/master
55+
$ git merge upstream/main
5656

5757
Now your local repo is set up such that you will push changes to your GitHub
5858
repo, from which you can submit a pull request.
@@ -110,12 +110,12 @@ Coding Style
110110
variables::
111111

112112
export GOOGLE_CLOUD_TESTING_REMOTE="upstream"
113-
export GOOGLE_CLOUD_TESTING_BRANCH="master"
113+
export GOOGLE_CLOUD_TESTING_BRANCH="main"
114114

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

120120
- This repository contains configuration for the
121121
`pre-commit <https://pre-commit.com/>`__ tool, which automates checking
@@ -209,7 +209,7 @@ The `description on PyPI`_ for the project comes directly from the
209209
``README``. Due to the reStructuredText (``rst``) parser used by
210210
PyPI, relative links which will work on GitHub (e.g. ``CONTRIBUTING.rst``
211211
instead of
212-
``https://github.com/googleapis/python-trace/blob/master/CONTRIBUTING.rst``)
212+
``https://github.com/googleapis/python-trace/blob/main/CONTRIBUTING.rst``)
213213
may cause problems creating links or rendering the description.
214214

215215
.. _description on PyPI: https://pypi.org/project/google-cloud-trace
@@ -234,7 +234,7 @@ We support:
234234

235235
Supported versions can be found in our ``noxfile.py`` `config`_.
236236

237-
.. _config: https://github.com/googleapis/python-trace/blob/master/noxfile.py
237+
.. _config: https://github.com/googleapis/python-trace/blob/main/noxfile.py
238238

239239

240240
We also explicitly decided to support Python 3 beginning with version 3.6.

packages/google-cloud-trace/UPGRADING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ from google.cloud import trace_v2
2828
client = trace_v2.TraceServiceClient()
2929
```
3030

31-
**NOTE**: The following sections identify changes between the previous `TraceServiceClient()` and the current `TraceServiceClient()` (not the handwritten wrapper `Client()`). If you were previously using `Client()`, it may be more helpful to reference the [samples](https://github.com/googleapis/python-trace/tree/master/samples/snippets).
31+
**NOTE**: The following sections identify changes between the previous `TraceServiceClient()` and the current `TraceServiceClient()` (not the handwritten wrapper `Client()`). If you were previously using `Client()`, it may be more helpful to reference the [samples](https://github.com/googleapis/python-trace/tree/main/samples/snippets).
3232

3333
## Method Calls
3434

@@ -159,4 +159,4 @@ from google.cloud
159159

160160
trace_ = trace_v1.TraceSpan()
161161
trace_ = trace_v1.types.TraceSpan()
162-
```
162+
```

packages/google-cloud-trace/owlbot.py

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,33 @@
4646
python.py_samples(skip_readmes=True)
4747

4848
s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file
49-
s.shell.run(["nox", "-s", "blacken"], hide_output=False)
49+
s.shell.run(["nox", "-s", "blacken"], hide_output=False)
50+
51+
# ----------------------------------------------------------------------------
52+
# Main Branch migration
53+
# ----------------------------------------------------------------------------
54+
55+
s.replace(
56+
"*.rst",
57+
"master",
58+
"main"
59+
)
60+
61+
s.replace(
62+
"*.rst",
63+
"google-cloud-python/blob/main",
64+
"google-cloud-python/blob/master"
65+
)
66+
67+
s.replace(
68+
"CONTRIBUTING.rst",
69+
"kubernetes/community/blob/main",
70+
"kubernetes/community/blob/master"
71+
)
72+
73+
s.replace(
74+
".kokoro/*",
75+
"master",
76+
"main"
77+
)
78+

0 commit comments

Comments
 (0)