Skip to content

Commit 30a71f4

Browse files
authored
chore: convert to owlbot (#320)
1 parent d9459d5 commit 30a71f4

File tree

3 files changed

+38
-15
lines changed

3 files changed

+38
-15
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
docker:
2+
digest: sha256:db1616f2f70823d8381d859835229e04371d14f59ac78063c5af73c55c3fffbb
3+
image: gcr.io/repo-automation-bots/owlbot-java:latest
Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Google LLC
1+
# Copyright 2021 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -12,17 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""This script is used to synthesize generated parts of this library."""
16-
17-
import synthtool.languages.java as java
18-
19-
AUTOSYNTH_MULTIPLE_COMMITS = True
20-
21-
java.common_templates(excludes=[
22-
"README.md",
23-
".github/release-please.yml",
24-
'.github/workflows/auto-release.yaml',
25-
'.github/workflows/samples.yaml',
26-
"samples/*"
27-
])
28-
15+
docker:
16+
image: "gcr.io/repo-automation-bots/owlbot-java:latest"

owlbot.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
# https://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+
15+
import synthtool as s
16+
from synthtool.languages import java
17+
18+
19+
for library in s.get_staging_dirs():
20+
# put any special-case replacements here
21+
s.move(library)
22+
23+
s.remove_staging_dirs()
24+
java.common_templates(
25+
excludes=[
26+
"README.md",
27+
".github/release-please.yml",
28+
".github/workflows/auto-release.yaml",
29+
".github/workflows/samples.yaml",
30+
"samples/*",
31+
]
32+
)

0 commit comments

Comments
 (0)