Skip to content

Commit

Permalink
chore: add default_version and codeowner_team to .repo-metadata.json (g…
Browse files Browse the repository at this point in the history
…oogleapis#1001)

Set codeowner_team to googleapis/api-bigquery as codeowner. Set default_version to v2. This change is needed for the following synthtool PRs.

googleapis/synthtool#1201
googleapis/synthtool#1114
  • Loading branch information
parthea authored and abdelmegahedgoogle committed Apr 17, 2023
1 parent 08bace4 commit 383be7b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 61 deletions.
28 changes: 15 additions & 13 deletions .repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"name": "bigquery",
"name_pretty": "Google Cloud BigQuery",
"product_documentation": "https://cloud.google.com/bigquery",
"client_documentation": "https://googleapis.dev/python/bigquery/latest",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559654",
"release_level": "ga",
"language": "python",
"library_type": "GAPIC_COMBO",
"repo": "googleapis/python-bigquery",
"distribution_name": "google-cloud-bigquery",
"api_id": "bigquery.googleapis.com",
"requires_billing": false
}
"name": "bigquery",
"name_pretty": "Google Cloud BigQuery",
"product_documentation": "https://cloud.google.com/bigquery",
"client_documentation": "https://googleapis.dev/python/bigquery/latest",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559654",
"release_level": "ga",
"language": "python",
"library_type": "GAPIC_COMBO",
"repo": "googleapis/python-bigquery",
"distribution_name": "google-cloud-bigquery",
"api_id": "bigquery.googleapis.com",
"requires_billing": false,
"default_version": "v2",
"codeowner_team": "@googleapis/api-bigquery"
}
49 changes: 1 addition & 48 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
excludes=[
"noxfile.py",
"docs/multiprocessing.rst",
"docs/index.rst",
".coveragerc",
".github/CODEOWNERS",
# Include custom SNIPPETS_TESTS job for performance.
Expand Down Expand Up @@ -170,52 +171,4 @@
),
)


# 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", r"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.",
)

s.shell.run(["nox", "-s", "blacken"], hide_output=False)

0 comments on commit 383be7b

Please sign in to comment.