Skip to content

Commit 8c5e224

Browse files
chore: migrate to owl bot (#154)
* 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>
1 parent 32cf6b9 commit 8c5e224

6 files changed

Lines changed: 47 additions & 112 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
docker:
2+
digest: sha256:c3eae37a355402067b97cbeb6f5a7d2dd87aecfd064aeb2d2ea0bde40778cf68
3+
image: gcr.io/repo-automation-bots/owlbot-nodejs:latest
4+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
docker:
15+
image: gcr.io/repo-automation-bots/owlbot-nodejs:latest
16+
17+
deep-preserve-regex:
18+
- /owl-bot-staging/v1alpha2
19+
- /owl-bot-staging/v1beta2
20+
21+
22+
deep-remove-regex:
23+
- /owl-bot-staging
24+
25+
deep-copy-regex:
26+
- source: /google/cloud/bigquery/storage/(v.*)/.*-nodejs/(.*)
27+
dest: /owl-bot-staging/$1/$2
28+
29+
begin-after-commit-hash: e0ea8b51f30e2ff6104abd1e4c8d1eb67078c86a
30+

handwritten/bigquery-storage/.kokoro/release/publish.cfg

Lines changed: 0 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
2-
"name": "bigquerystorage",
3-
"name_pretty": "Google BigQuery Storage",
4-
"product_documentation": "https://cloud.google.com/bigquery/docs/reference/storage",
5-
"client_documentation": "https://googleapis.dev/nodejs/bigquerystorage/latest",
6-
"issue_tracker": "https://b.corp.google.com/savedsearches/559654",
2+
"distribution_name": "@google-cloud/bigquery-storage",
73
"release_level": "ga",
8-
"language": "nodejs",
4+
"product_documentation": "https://cloud.google.com/bigquery/docs/reference/storage",
95
"repo": "googleapis/nodejs-bigquery-storage",
10-
"distribution_name": "@google-cloud/bigquery-storage",
11-
"api_id": "bigquerystorage.googleapis.com",
6+
"default_version": "v1",
7+
"language": "nodejs",
128
"requires_billing": true,
9+
"issue_tracker": "https://b.corp.google.com/savedsearches/559654",
10+
"client_documentation": "https://googleapis.dev/nodejs/bigquerystorage/latest",
11+
"name": "bigquerystorage",
12+
"name_pretty": "Google BigQuery Storage",
13+
"api_id": "bigquerystorage.googleapis.com",
1314
"codeowner_team": "@googleapis/api-bigquery"
1415
}
Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
"""This script is used to synthesize generated parts of this library."""
15-
import synthtool as s
16-
import synthtool.gcp as gcp
1715
import synthtool.languages.node as node
18-
import logging
19-
logging.basicConfig(level=logging.DEBUG)
2016

21-
AUTOSYNTH_MULTIPLE_COMMITS = True
22-
23-
# Run the gapic generator
24-
gapic = gcp.GAPICBazel()
25-
name = 'bigquery-storage'
26-
versions = ['v1beta1', 'v1']
27-
for version in versions:
28-
library = gapic.node_library(name, version, proto_path=f'google/cloud/bigquery/storage/{version}')
29-
s.copy(library, excludes=['package.json', 'README.md', 'src/index.ts'])
30-
# Copy common templates
31-
common_templates = gcp.CommonTemplates()
32-
templates = common_templates.node_library(source_location='build/src')
33-
s.copy(templates, excludes=[])
34-
node.postprocess_gapic_library()
17+
node.owlbot_main(
18+
staging_excludes=['package.json', 'README.md', 'src/index.ts'],
19+
templates_excludes=['src/index.ts']
20+
)

handwritten/bigquery-storage/synth.metadata

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)