Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit bd7f77a

Browse files
authored
chore: migrate to owlbot (#242)
1 parent 2ee511f commit bd7f77a

File tree

8 files changed

+103
-101
lines changed

8 files changed

+103
-101
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:4e961d006ec9e44501273788f3cbe1e060c4666742ba190f60d6a05bcdf3ac8f
3+
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest

.github/.OwlBot.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
15+
docker:
16+
image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest"
17+
18+
deep-remove-regex:
19+
- "/grpc-google-.*/src"
20+
- "/proto-google-.*/src"
21+
22+
deep-preserve-regex:
23+
- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
24+
- "/proto-google-iam-v1/src/main/java/com/google/iam/v1/logging"
25+
- "/proto-google-iam-v1/src/main/proto/google/iam/v1"
26+
27+
deep-copy-regex:
28+
- source: "/google/iam/v1/google-iam-v1-java/grpc-google-iam-v1-java/src"
29+
dest: "/owl-bot-staging/v1/grpc-google-iam-v1/src"
30+
- source: "/google/iam/v1/google-iam-v1-java/proto-google-iam-v1-java/src"
31+
dest: "/owl-bot-staging/v1/proto-google-iam-v1/src"

.repo-metadata.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@
1010
"language": "java",
1111
"repo": "googleapis/java-iam",
1212
"repo_short": "java-iam",
13-
"distribution_name": "com.google.api.grpc:proto-google-iam-v1"
13+
"distribution_name": "com.google.api.grpc:proto-google-iam-v1",
14+
"excluded_poms": "proto-google-iam-v1-bom",
15+
"excluded_dependencies": "grpc-google-iam-v1"
1416
}

owlbot.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright 2020 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+
15+
"""This script is used to synthesize generated parts of this library."""
16+
17+
import synthtool as s
18+
from synthtool.languages import java
19+
20+
for library in s.get_staging_dirs():
21+
# put any special-case replacements here
22+
s.move(library)
23+
24+
s.remove_staging_dirs()
25+
java.common_templates(excludes=[
26+
'README.md',
27+
'samples/*',
28+
'.github/workflows/samples.yaml',
29+
])
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
3+
<differences>
4+
<difference>
5+
<differenceType>7012</differenceType>
6+
<className>com/google/iam/v1/*OrBuilder</className>
7+
<method>* get*(*)</method>
8+
</difference>
9+
<difference>
10+
<differenceType>7012</differenceType>
11+
<className>com/google/iam/v1/*OrBuilder</className>
12+
<method>boolean contains*(*)</method>
13+
</difference>
14+
<difference>
15+
<differenceType>7012</differenceType>
16+
<className>com/google/iam/v1/*OrBuilder</className>
17+
<method>boolean has*(*)</method>
18+
</difference> <difference>
19+
<differenceType>7012</differenceType>
20+
<className>com/google/iam/v1/logging/*OrBuilder</className>
21+
<method>* get*(*)</method>
22+
</difference>
23+
<difference>
24+
<differenceType>7012</differenceType>
25+
<className>com/google/iam/v1/logging/*OrBuilder</className>
26+
<method>boolean contains*(*)</method>
27+
</difference>
28+
<difference>
29+
<differenceType>7012</differenceType>
30+
<className>com/google/iam/v1/logging/*OrBuilder</className>
31+
<method>boolean has*(*)</method>
32+
</difference>
33+
</differences>

proto-google-iam-v1/pom.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
43
<modelVersion>4.0.0</modelVersion>
54
<groupId>com.google.api.grpc</groupId>
65
<artifactId>proto-google-iam-v1</artifactId>
@@ -31,4 +30,4 @@
3130
</plugin>
3231
</plugins>
3332
</build>
34-
</project>
33+
</project>

synth.py

Lines changed: 0 additions & 96 deletions
This file was deleted.

versions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
# module:released-version:current-version
33

44
proto-google-iam-v1:1.1.7:1.1.8-SNAPSHOT
5+
grpc-google-iam-v1:1.1.7:1.1.8-SNAPSHOT

0 commit comments

Comments
 (0)