diff --git a/packages/google-cloud-compute/.github/.OwlBot.yaml b/packages/google-cloud-compute/.github/.OwlBot.yaml new file mode 100644 index 00000000000..eb904ddb2d3 --- /dev/null +++ b/packages/google-cloud-compute/.github/.OwlBot.yaml @@ -0,0 +1,19 @@ +# 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 + + +begin-after-commit-hash: efb563da184f479fabf98da24f969494944d059b + diff --git a/packages/google-cloud-compute/owlbot.py b/packages/google-cloud-compute/owlbot.py new file mode 100644 index 00000000000..c8710fa98e3 --- /dev/null +++ b/packages/google-cloud-compute/owlbot.py @@ -0,0 +1,19 @@ +# 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 +# +# https://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. + +import synthtool.languages.node as node + +node.owlbot_main(templates_excludes=[ + '.mocharc.js' +]) diff --git a/packages/google-cloud-compute/synth.metadata b/packages/google-cloud-compute/synth.metadata deleted file mode 100644 index a8f56500dd1..00000000000 --- a/packages/google-cloud-compute/synth.metadata +++ /dev/null @@ -1,18 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/nodejs-compute.git", - "sha": "75c446ab50b3de0e3d8eb1c0ef5a317e7dbf4fcb" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7332178a11ddddc91188dc0f25bca1ccadcaa6c6" - } - } - ] -} \ No newline at end of file diff --git a/packages/google-cloud-compute/synth.py b/packages/google-cloud-compute/synth.py deleted file mode 100644 index 227da9cae92..00000000000 --- a/packages/google-cloud-compute/synth.py +++ /dev/null @@ -1,16 +0,0 @@ -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 - -common_templates = gcp.CommonTemplates() -templates = common_templates.node_library() -s.copy(templates, excludes=[ - '.mocharc.js' -]) -node.install() -node.fix()