From 3740e20c0f78092f157914109a179e1731b26e16 Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Thu, 20 May 2021 16:33:04 -0700 Subject: [PATCH 1/3] chore: migrate to owl bot --- .github/.OwlBot.lock.yaml | 4 ++++ .github/.OwlBot.yaml | 19 +++++++++++++++++++ .repo-metadata.json | 1 + owlbot.py | 17 +++++++++++++++++ synth.metadata | 18 ------------------ synth.py | 13 ------------- 6 files changed, 41 insertions(+), 31 deletions(-) create mode 100644 .github/.OwlBot.lock.yaml create mode 100644 .github/.OwlBot.yaml create mode 100644 .repo-metadata.json create mode 100644 owlbot.py delete mode 100644 synth.metadata delete mode 100644 synth.py diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml new file mode 100644 index 0000000..6e5f21e --- /dev/null +++ b/.github/.OwlBot.lock.yaml @@ -0,0 +1,4 @@ +docker: + digest: sha256:f556e6e7be625deb1b2429fe608df27be57185c3e6b7d39ee0059f1609f17530 + image: gcr.io/repo-automation-bots/owlbot-nodejs:latest + diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml new file mode 100644 index 0000000..3a281cc --- /dev/null +++ b/.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: 397c0bfd367a2427104f988d5329bc117caafd95 + diff --git a/.repo-metadata.json b/.repo-metadata.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.repo-metadata.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/owlbot.py b/owlbot.py new file mode 100644 index 0000000..dfc35ac --- /dev/null +++ b/owlbot.py @@ -0,0 +1,17 @@ +# 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=["README.md"]) diff --git a/synth.metadata b/synth.metadata deleted file mode 100644 index 236286f..0000000 --- a/synth.metadata +++ /dev/null @@ -1,18 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/teeny-request.git", - "sha": "c15947f33fdb273f4d0565bf61b665a2465311f2" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7332178a11ddddc91188dc0f25bca1ccadcaa6c6" - } - } - ] -} \ No newline at end of file diff --git a/synth.py b/synth.py deleted file mode 100644 index d7e1a67..0000000 --- a/synth.py +++ /dev/null @@ -1,13 +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) -node.install() -node.fix() From 455edb98e865a672762c0995530f72a2e175d2e7 Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Thu, 20 May 2021 16:33:14 -0700 Subject: [PATCH 2/3] chore: copy files from googleapis-gen 397c0bfd367a2427104f988d5329bc117caafd95 From 4a63a2d31df6c2f9e964b9bc89a7ba0ea67b4323 Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Thu, 20 May 2021 16:33:20 -0700 Subject: [PATCH 3/3] chore: run the post processor