Skip to content

Commit 041a4b7

Browse files
authored
chore: convert to owlbot (#1879)
1 parent 7bbdc64 commit 041a4b7

File tree

3 files changed

+40
-14
lines changed

3 files changed

+40
-14
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 & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
# Copyright 2019 Google LLC
1+
# Copyright 2021 Google LLC
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,16 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
"""This script is used to synthesize generated parts of this library."""
16-
17-
import synthtool.languages.java as java
1814

19-
java.common_templates(excludes=[
20-
"README.md",
21-
"java.header",
22-
"checkstyle.xml",
23-
"renovate.json",
24-
"license-checks.xml",
25-
".github/workflows/ci.yaml",
26-
".github/workflows/samples.yaml",
27-
])
15+
docker:
16+
image: "gcr.io/repo-automation-bots/owlbot-java:latest"

owlbot.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
"java.header",
28+
"checkstyle.xml",
29+
"renovate.json",
30+
"license-checks.xml",
31+
".github/workflows/ci.yaml",
32+
".github/workflows/samples.yaml",
33+
]
34+
)

0 commit comments

Comments
 (0)