Skip to content

Commit

Permalink
chore: migrate to owl bot (#154)
Browse files Browse the repository at this point in the history
* chore: migrate to owl bot

* chore: copy files from googleapis-gen e0ea8b51f30e2ff6104abd1e4c8d1eb67078c86a

* chore: run the post processor

* 🦉 Updates from OwlBot

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
SurferJeffAtGoogle and gcf-owl-bot[bot] authored Apr 20, 2021
1 parent a5ec5a7 commit d2ccb0a
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 72 deletions.
30 changes: 30 additions & 0 deletions packages/google-cloud-bigquery-storage/.github/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
docker:
image: gcr.io/repo-automation-bots/owlbot-nodejs:latest

deep-preserve-regex:
- /owl-bot-staging/v1alpha2
- /owl-bot-staging/v1beta2


deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/cloud/bigquery/storage/(v.*)/.*-nodejs/(.*)
dest: /owl-bot-staging/$1/$2

begin-after-commit-hash: e0ea8b51f30e2ff6104abd1e4c8d1eb67078c86a

17 changes: 9 additions & 8 deletions packages/google-cloud-bigquery-storage/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "bigquerystorage",
"name_pretty": "Google BigQuery Storage",
"product_documentation": "https://cloud.google.com/bigquery/docs/reference/storage",
"client_documentation": "https://googleapis.dev/nodejs/bigquerystorage/latest",
"issue_tracker": "https://b.corp.google.com/savedsearches/559654",
"distribution_name": "@google-cloud/bigquery-storage",
"release_level": "ga",
"language": "nodejs",
"product_documentation": "https://cloud.google.com/bigquery/docs/reference/storage",
"repo": "googleapis/nodejs-bigquery-storage",
"distribution_name": "@google-cloud/bigquery-storage",
"api_id": "bigquerystorage.googleapis.com",
"default_version": "v1",
"language": "nodejs",
"requires_billing": true,
"issue_tracker": "https://b.corp.google.com/savedsearches/559654",
"client_documentation": "https://googleapis.dev/nodejs/bigquerystorage/latest",
"name": "bigquerystorage",
"name_pretty": "Google BigQuery Storage",
"api_id": "bigquerystorage.googleapis.com",
"codeowner_team": "@googleapis/api-bigquery"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""This script is used to synthesize generated parts of this library."""
import synthtool as s
import synthtool.gcp as gcp
import synthtool.languages.node as node
import logging
logging.basicConfig(level=logging.DEBUG)

AUTOSYNTH_MULTIPLE_COMMITS = True

# Run the gapic generator
gapic = gcp.GAPICBazel()
name = 'bigquery-storage'
versions = ['v1beta1', 'v1']
for version in versions:
library = gapic.node_library(name, version, proto_path=f'google/cloud/bigquery/storage/{version}')
s.copy(library, excludes=['package.json', 'README.md', 'src/index.ts'])
# Copy common templates
common_templates = gcp.CommonTemplates()
templates = common_templates.node_library(source_location='build/src')
s.copy(templates, excludes=[])
node.postprocess_gapic_library()
node.owlbot_main(
staging_excludes=['package.json', 'README.md', 'src/index.ts'],
templates_excludes=['src/index.ts']
)
46 changes: 0 additions & 46 deletions packages/google-cloud-bigquery-storage/synth.metadata

This file was deleted.

0 comments on commit d2ccb0a

Please sign in to comment.