Skip to content

Commit c049631

Browse files
authored
chore: convert to owlbot (#743)
1 parent d4335f8 commit c049631

3 files changed

Lines changed: 44 additions & 17 deletions

File tree

.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 & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020 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.
@@ -11,20 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
"""This script is used to synthesize generated parts of this library."""
1514

16-
import synthtool.languages.java as java
17-
18-
java.common_templates(excludes=[
19-
"LICENSE",
20-
"README.md",
21-
"java.header",
22-
"checkstyle.xml",
23-
"renovate.json",
24-
"license-checks.xml",
25-
"samples/**",
26-
".github/workflows/approve-readme.yaml",
27-
".github/workflows/samples.yaml",
28-
'.kokoro/nightly/integration.cfg',
29-
'.kokoro/presubmit/integration.cfg',
30-
])
15+
docker:
16+
image: "gcr.io/repo-automation-bots/owlbot-java:latest"

owlbot.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
"LICENSE",
27+
"README.md",
28+
"java.header",
29+
"checkstyle.xml",
30+
"renovate.json",
31+
"license-checks.xml",
32+
"samples/**",
33+
".github/workflows/approve-readme.yaml",
34+
".github/workflows/samples.yaml",
35+
".kokoro/nightly/integration.cfg",
36+
".kokoro/presubmit/integration.cfg",
37+
]
38+
)

0 commit comments

Comments
 (0)