Skip to content

Commit

Permalink
chore: migrate to owl bot (#153)
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

* fix: help tests pass

* 🦉 Updates from OwlBot

* update Docker image

* 🦉 Updates from OwlBot

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Sofia Leon <[email protected]>
  • Loading branch information
3 people authored May 18, 2021
1 parent 71b94e0 commit 5b140ae
Show file tree
Hide file tree
Showing 25 changed files with 4,141 additions and 3,499 deletions.
26 changes: 26 additions & 0 deletions packages/google-cloud-gaming/.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/gaming/(v.*)/.*-nodejs/(.*)
dest: /owl-bot-staging/$1/$2

begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b

15 changes: 8 additions & 7 deletions packages/google-cloud-gaming/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "game-servers",
"name_pretty": "Google Cloud Game Servers",
"product_documentation": "https://cloud.google.com/game-servers/",
"client_documentation": "https://googleapis.dev/nodejs/game-servers/latest",
"issue_tracker": "",
"product_documentation": "https://cloud.google.com/game-servers/",
"name": "game-servers",
"requires_billing": true,
"release_level": "ga",
"language": "nodejs",
"repo": "googleapis/nodejs-game-servers",
"distribution_name": "@google-cloud/game-servers",
"api_id": "gameservices.googleapis.com",
"requires_billing": true
"distribution_name": "@google-cloud/game-servers",
"repo": "googleapis/nodejs-game-servers",
"issue_tracker": "",
"name_pretty": "Google Cloud Game Servers",
"default_version": "v1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,6 @@
# 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.gcp as gcp
import synthtool.languages.node as node
import logging
logging.basicConfig(level=logging.DEBUG)

AUTOSYNTH_MULTIPLE_COMMITS = True

# run the gapic generator
gapic = gcp.GAPICBazel()
versions = ['v1', 'v1beta']
for version in versions:
library = gapic.node_library('gaming', version)
s.copy(library, excludes=['package.json', 'README.md'])
# Copy common templates
common_templates = gcp.CommonTemplates()
templates = common_templates.node_library(source_location='build/src', versions=versions, default_version='v1')
s.copy(templates, excludes=[])
node.postprocess_gapic_library()
node.owlbot_main(staging_excludes=['package.json', 'README.md', 'CODEOWNERS'])
6 changes: 3 additions & 3 deletions packages/google-cloud-gaming/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
// ** https://github.com/googleapis/synthtool **
// ** All changes to this file may be overwritten. **

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

const GameServerClustersServiceClient = v1.GameServerClustersServiceClient;
type GameServerClustersServiceClient = v1.GameServerClustersServiceClient;
Expand All @@ -30,16 +30,16 @@ const RealmsServiceClient = v1.RealmsServiceClient;
type RealmsServiceClient = v1.RealmsServiceClient;

export {
v1,
v1beta,
v1,
GameServerClustersServiceClient,
GameServerConfigsServiceClient,
GameServerDeploymentsServiceClient,
RealmsServiceClient,
};
export default {
v1,
v1beta,
v1,
GameServerClustersServiceClient,
GameServerConfigsServiceClient,
GameServerDeploymentsServiceClient,
Expand Down
Loading

0 comments on commit 5b140ae

Please sign in to comment.