Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
# 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

# @googleapis/python-samples-owners and @googleapis/api-bigquery are the default owners for samples changes
/samples/ @googleapis/python-samples-owners @googleapis/api-bigquery
27 changes: 14 additions & 13 deletions .repo-metadata.json
Original file line number Diff line number Diff line change
@@ -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
}
"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"
}
46 changes: 2 additions & 44 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)