Skip to content

Commit

Permalink
chore: migrate to owl bot (#515)
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 dad0e82 commit 3655bda
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 113 deletions.
26 changes: 26 additions & 0 deletions packages/google-cloud-tasks/.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/tasks/(v.*)/.*-nodejs/(.*)
dest: /owl-bot-staging/$1/$2

begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b

17 changes: 9 additions & 8 deletions packages/google-cloud-tasks/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "tasks",
"name_pretty": "Cloud Tasks",
"product_documentation": "https://cloud.google.com/tasks/docs/",
"client_documentation": "https://googleapis.dev/nodejs/tasks/latest",
"issue_tracker": "https://issuetracker.google.com/savedsearches/5433985",
"distribution_name": "@google-cloud/tasks",
"release_level": "ga",
"language": "nodejs",
"product_documentation": "https://cloud.google.com/tasks/docs/",
"repo": "googleapis/nodejs-tasks",
"distribution_name": "@google-cloud/tasks",
"api_id": "tasks.googleapis.com",
"default_version": "v2",
"language": "nodejs",
"requires_billing": true,
"issue_tracker": "https://issuetracker.google.com/savedsearches/5433985",
"client_documentation": "https://googleapis.dev/nodejs/tasks/latest",
"name": "tasks",
"name_pretty": "Cloud Tasks",
"api_id": "tasks.googleapis.com",
"codeowner_team": "@googleapis/serverless-team"
}
34 changes: 34 additions & 0 deletions packages/google-cloud-tasks/owlbot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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
#
# 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.

"""This script is used to synthesize generated parts of this library."""

import synthtool as s
import synthtool.languages.node as node
import pathlib


def patch(library: pathlib.Path):
s.replace(library / 'src/*/cloud_tasks_client_config.json',
'"initial_rpc_timeout_millis": 60000',
'"initial_rpc_timeout_millis": 20000')
s.replace(library / 'src/*/cloud_tasks_client_config.json',
'"max_rpc_timeout_millis": 60000',
'"max_rpc_timeout_millis": 20000')


node.owlbot_main(
staging_excludes=["README.md", "package.json"],
patch_staging=patch
)
8 changes: 4 additions & 4 deletions packages/google-cloud-tasks/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
// ** https://github.com/googleapis/synthtool **
// ** All changes to this file may be overwritten. **

import * as v2 from './v2';
import * as v2beta2 from './v2beta2';
import * as v2beta3 from './v2beta3';
import * as v2beta2 from './v2beta2';
import * as v2 from './v2';

const CloudTasksClient = v2.CloudTasksClient;
type CloudTasksClient = v2.CloudTasksClient;

export {v2, v2beta2, v2beta3, CloudTasksClient};
export default {v2, v2beta2, v2beta3, CloudTasksClient};
export {v2beta3, v2beta2, v2, CloudTasksClient};
export default {v2beta3, v2beta2, v2, CloudTasksClient};
import * as protos from '../protos/protos';
export {protos};
55 changes: 0 additions & 55 deletions packages/google-cloud-tasks/synth.metadata

This file was deleted.

46 changes: 0 additions & 46 deletions packages/google-cloud-tasks/synth.py

This file was deleted.

0 comments on commit 3655bda

Please sign in to comment.