Skip to content

Commit 75160b0

Browse files
chore: migrate to owl bot (#526)
1 parent 9a56fd2 commit 75160b0

File tree

7 files changed

+822
-850
lines changed

7 files changed

+822
-850
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
docker:
15+
image: gcr.io/repo-automation-bots/owlbot-nodejs:latest
16+
17+
18+
deep-remove-regex:
19+
- /owl-bot-staging
20+
21+
deep-copy-regex:
22+
- source: /google/cloud/monitoring/(v.*)/.*-nodejs/(.*)
23+
dest: /owl-bot-staging/$1/$2
24+
25+
begin-after-commit-hash: ed3195d0a29ae8c2608dc5a2aa2590554a3f9d14
26+
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
2-
"name": "monitoring",
3-
"name_pretty": "Stackdriver Monitoring",
4-
"product_documentation": "https://cloud.google.com/monitoring/docs",
52
"client_documentation": "https://googleapis.dev/nodejs/monitoring/latest",
6-
"issue_tracker": "https://issuetracker.google.com/savedsearches/559785",
3+
"product_documentation": "https://cloud.google.com/monitoring/docs",
4+
"name": "monitoring",
5+
"requires_billing": true,
76
"release_level": "ga",
87
"language": "nodejs",
9-
"repo": "googleapis/nodejs-monitoring",
10-
"distribution_name": "@google-cloud/monitoring",
118
"api_id": "monitoring.googleapis.com",
12-
"requires_billing": true
9+
"distribution_name": "@google-cloud/monitoring",
10+
"repo": "googleapis/nodejs-monitoring",
11+
"issue_tracker": "https://issuetracker.google.com/savedsearches/559785",
12+
"name_pretty": "Stackdriver Monitoring",
13+
"default_version": "v3"
1314
}

packages/google-cloud-monitoring/synth.py renamed to packages/google-cloud-monitoring/owlbot.py

+1-19
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,6 @@
1414

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

17-
import synthtool as s
18-
import synthtool.gcp as gcp
1917
import synthtool.languages.node as node
20-
import logging
21-
logging.basicConfig(level=logging.DEBUG)
2218

23-
AUTOSYNTH_MULTIPLE_COMMITS = True
24-
25-
26-
gapic = gcp.GAPICBazel()
27-
version = "v3"
28-
library = gapic.node_library("monitoring", version, proto_path=f'google/monitoring/{version}')
29-
30-
s.copy(library, excludes=["README.md", "package.json"])
31-
32-
common_templates = gcp.CommonTemplates()
33-
templates = common_templates.node_library(
34-
source_location="build/src", versions=["v3"], default_version="v3")
35-
s.copy(templates)
36-
37-
node.postprocess_gapic_library()
19+
node.owlbot_main(staging_excludes=["README.md", "package.json"])

0 commit comments

Comments
 (0)