From 51d8d6386bba1805224f9ac967f290ff653f6d83 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 3 Sep 2021 10:04:59 +0000 Subject: [PATCH 1/5] chore: add codeowner_team to repo-metadata.json --- .github/CODEOWNERS | 8 ++++---- .repo-metadata.json | 27 ++++++++++++++------------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1473ae0..c1f39b4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -4,8 +4,8 @@ # For syntax help see: # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax -# The @googleapis/api-bigquery is the default owner for changes in this repo -* @googleapis/api-bigquery @googleapis/yoshi-python -# The python-samples-reviewers team is the default owner for samples changes -/samples/ @googleapis/python-samples-owners @googleapis/api-bigquery @googleapis/yoshi-python +# @googleapis/yoshi-python and @googleapis/api-bigquery are the default owners for changes in this repo +* @googleapis/yoshi-python @googleapis/api-bigquery + +/samples/ @googleapis/python-samples-owners @googleapis/api-bigquery diff --git a/.repo-metadata.json b/.repo-metadata.json index 20a417c..c5d8bfd 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,14 +1,15 @@ { -"name": "bigqueryconnection", -"name_pretty": "Google BigQuery Connection", -"product_documentation": "https://cloud.google.com/bigquery/docs/reference/bigqueryconnection", -"client_documentation": "https://googleapis.dev/python/bigqueryconnection/latest", -"issue_tracker": "", -"release_level": "ga", -"language": "python", -"library_type": "GAPIC_AUTO", -"repo": "googleapis/python-bigquery-connection", -"distribution_name": "google-cloud-bigquery-connection", -"api_id": "bigqueryconnection.googleapis.com", -"requires_billing": true -} \ No newline at end of file + "name": "bigqueryconnection", + "name_pretty": "Google BigQuery Connection", + "product_documentation": "https://cloud.google.com/bigquery/docs/reference/bigqueryconnection", + "client_documentation": "https://googleapis.dev/python/bigqueryconnection/latest", + "issue_tracker": "", + "release_level": "ga", + "language": "python", + "library_type": "GAPIC_AUTO", + "repo": "googleapis/python-bigquery-connection", + "distribution_name": "google-cloud-bigquery-connection", + "api_id": "bigqueryconnection.googleapis.com", + "requires_billing": true, + "codeowner_team": "@googleapis/api-bigquery" +} From 48460157a4570eadeb0e2fac4c1e0c305854d42a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 3 Sep 2021 10:08:20 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- CONTRIBUTING.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index fee1f58..f8402f9 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -113,9 +113,9 @@ Coding Style export GOOGLE_CLOUD_TESTING_BRANCH="main" By doing this, you are specifying the location of the most up-to-date - version of ``python-bigquery-connection``. The - remote name ``upstream`` should point to the official ``googleapis`` - checkout and the branch should be the default branch on that remote (``main``). + version of ``python-bigquery-connection``. The the suggested remote name ``upstream`` + should point to the official ``googleapis`` checkout and the + the branch should be the main branch on that remote (``main``). - This repository contains configuration for the `pre-commit `__ tool, which automates checking From 1140cd99e7fe37e75c7fdf9927d856717884c403 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 3 Sep 2021 10:09:36 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- CONTRIBUTING.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index f8402f9..fee1f58 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -113,9 +113,9 @@ Coding Style export GOOGLE_CLOUD_TESTING_BRANCH="main" By doing this, you are specifying the location of the most up-to-date - version of ``python-bigquery-connection``. The the suggested remote name ``upstream`` - should point to the official ``googleapis`` checkout and the - the branch should be the main branch on that remote (``main``). + version of ``python-bigquery-connection``. The + remote name ``upstream`` should point to the official ``googleapis`` + checkout and the branch should be the default branch on that remote (``main``). - This repository contains configuration for the `pre-commit `__ tool, which automates checking From 8b0f588f442dd65dc45f85bea715a17ee25b3247 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 3 Sep 2021 10:32:31 +0000 Subject: [PATCH 4/5] remove obsolete replacements --- owlbot.py | 46 ++-------------------------------------------- 1 file changed, 2 insertions(+), 44 deletions(-) diff --git a/owlbot.py b/owlbot.py index d13854b..fe4767f 100644 --- a/owlbot.py +++ b/owlbot.py @@ -32,53 +32,11 @@ # Add templated files # ---------------------------------------------------------------------------- templated_files = common.py_library(cov_level=99, microgenerator=True,) -python.py_samples(skip_readmes=True) + s.move( templated_files, excludes=[".coveragerc"] ) # the microgenerator has a good coveragerc file -# Remove the replacements below once https://github.com/googleapis/synthtool/pull/1188 is merged - -# Update googleapis/repo-automation-bots repo to main in .kokoro/*.sh files -s.replace( - ".kokoro/*.sh", "repo-automation-bots/tree/master", "repo-automation-bots/tree/main" -) - -# Customize CONTRIBUTING.rst to replace master with main -s.replace( - "CONTRIBUTING.rst", - "fetch and merge changes from upstream into master", - "fetch and merge changes from upstream into main", -) - -s.replace( - "CONTRIBUTING.rst", "git merge upstream/master", "git merge upstream/main", -) - -s.replace( - "CONTRIBUTING.rst", - """export GOOGLE_CLOUD_TESTING_BRANCH=\"master\"""", - """export GOOGLE_CLOUD_TESTING_BRANCH=\"main\"""", -) - -s.replace( - "CONTRIBUTING.rst", "remote \(``master``\)", "remote (``main``)", -) - -s.replace( - "CONTRIBUTING.rst", "blob/master/CONTRIBUTING.rst", "blob/main/CONTRIBUTING.rst", -) - -s.replace( - "CONTRIBUTING.rst", "blob/master/noxfile.py", "blob/main/noxfile.py", -) - -s.replace( - "docs/conf.py", "master_doc", "root_doc", -) - -s.replace( - "docs/conf.py", "# The master toctree document.", "# The root toctree document.", -) +python.py_samples(skip_readmes=True) s.shell.run(["nox", "-s", "blacken"], hide_output=False) From 753f1653a00ec4dbb30fa0206ec5bd236c0909d7 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 3 Sep 2021 10:32:36 +0000 Subject: [PATCH 5/5] add comment --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c1f39b4..3678a0a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -8,4 +8,5 @@ # @googleapis/yoshi-python and @googleapis/api-bigquery are the default owners for changes in this repo * @googleapis/yoshi-python @googleapis/api-bigquery +# @googleapis/python-samples-owners and @googleapis/api-bigquery are the default owners for samples changes /samples/ @googleapis/python-samples-owners @googleapis/api-bigquery