Skip to content

Commit

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

* chore: copy files from googleapis-gen fb91803ccef5d7c695139b22788b309e2197856b

* 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 21, 2021
1 parent 220843e commit 465aca4
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 93 deletions.
26 changes: 26 additions & 0 deletions packages/google-cloud-automl/.github/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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-remove-regex:
- /owl-bot-staging

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

begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b

17 changes: 9 additions & 8 deletions packages/google-cloud-automl/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "automl",
"name_pretty": "Cloud AutoML",
"product_documentation": "https://cloud.google.com/automl/docs/",
"client_documentation": "https://googleapis.dev/nodejs/automl/latest",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559744",
"distribution_name": "@google-cloud/automl",
"release_level": "ga",
"language": "nodejs",
"product_documentation": "https://cloud.google.com/automl/docs/",
"repo": "googleapis/nodejs-automl",
"distribution_name": "@google-cloud/automl",
"api_id": "automl.googleapis.com",
"default_version": "v1",
"language": "nodejs",
"requires_billing": true,
"issue_tracker": "https://issuetracker.google.com/savedsearches/559744",
"client_documentation": "https://googleapis.dev/nodejs/automl/latest",
"name": "automl",
"name_pretty": "Cloud AutoML",
"api_id": "automl.googleapis.com",
"codeowner_team": "@googleapis/ml-apis"
}
20 changes: 20 additions & 0 deletions packages/google-cloud-automl/owlbot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2018 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(
staging_excludes=['README.md', 'package.json'],
templates_excludes=['.kokoro/trampoline.sh', '.kokoro/continuous/node12/samples-test.cfg', '.kokoro/presubmit/node12/samples-test.cfg']
)
6 changes: 3 additions & 3 deletions packages/google-cloud-automl/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
// ** https://github.com/googleapis/synthtool **
// ** All changes to this file may be overwritten. **

import * as v1 from './v1';
import * as v1beta1 from './v1beta1';
import * as v1 from './v1';

const AutoMlClient = v1.AutoMlClient;
type AutoMlClient = v1.AutoMlClient;
const PredictionServiceClient = v1.PredictionServiceClient;
type PredictionServiceClient = v1.PredictionServiceClient;

export {v1, v1beta1, AutoMlClient, PredictionServiceClient};
export default {v1, v1beta1, AutoMlClient, PredictionServiceClient};
export {v1beta1, v1, AutoMlClient, PredictionServiceClient};
export default {v1beta1, v1, AutoMlClient, PredictionServiceClient};
import * as protos from '../protos/protos';
export {protos};
46 changes: 0 additions & 46 deletions packages/google-cloud-automl/synth.metadata

This file was deleted.

36 changes: 0 additions & 36 deletions packages/google-cloud-automl/synth.py

This file was deleted.

0 comments on commit 465aca4

Please sign in to comment.