Skip to content

Commit ef758f9

Browse files
authored
chore: use api_shortname in OwlBot.yaml's api_name (#8999)
When generating new OwlBot.yaml file, use api_shortname as api_name field of the file. This is the command to list bad file we recently created: find . -name '.OwlBot.yaml' |xargs grep 'api-name: java-'
1 parent f1f845f commit ef758f9

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

generation/new_client/new-client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ def generate(
236236
output_name=str(workdir / owlbot_yaml_location_from_module),
237237
artifact_name=distribution_name_short,
238238
proto_path=proto_path,
239-
module_name=f"java-{output_name}"
239+
module_name=f"java-{output_name}",
240+
api_shortname=api_shortname
240241
)
241242

242243
# get the sha256 digets for the owlbot image

generation/new_client/templates/owlbot.yaml.monorepo.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ deep-copy-regex:
3333
dest: "/owl-bot-staging/{{ module_name }}/$1/samples/snippets/generated"
3434
{% endif %}
3535

36-
api-name: {{ module_name }}
36+
api-name: {{ api_shortname }}

java-discoveryengine/.OwlBot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ deep-copy-regex:
3232
- source: "/google/cloud/discoveryengine/(v.*)/.*-java/samples/snippets/generated"
3333
dest: "/owl-bot-staging/java-discoveryengine/$1/samples/snippets/generated"
3434

35-
api-name: java-discoveryengine
35+
api-name: discoveryengine

java-enterpriseknowledgegraph/.OwlBot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ deep-copy-regex:
3232
- source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/samples/snippets/generated"
3333
dest: "/owl-bot-staging/java-enterpriseknowledgegraph/$1/samples/snippets/generated"
3434

35-
api-name: java-enterpriseknowledgegraph
35+
api-name: enterpriseknowledgegraph

java-maps-addressvalidation/.OwlBot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ deep-copy-regex:
3232
- source: "/google/maps/addressvalidation/(v.*)/.*-java/samples/snippets/generated"
3333
dest: "/owl-bot-staging/java-maps-addressvalidation/$1/samples/snippets/generated"
3434

35-
api-name: java-maps-addressvalidation
35+
api-name: maps-addressvalidation

java-maps-routing/.OwlBot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ deep-copy-regex:
3232
- source: "/google/maps/routing/(v.*)/.*-java/samples/snippets/generated"
3333
dest: "/owl-bot-staging/java-maps-routing/$1/samples/snippets/generated"
3434

35-
api-name: java-maps-routing
35+
api-name: maps-routing

java-monitoring-metricsscope/.OwlBot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ deep-copy-regex:
3232
- source: "/google/monitoring/metricsscope/(v.*)/.*-java/samples/snippets/generated"
3333
dest: "/owl-bot-staging/java-monitoring-metricsscope/$1/samples/snippets/generated"
3434

35-
api-name: java-monitoring-metricsscope
35+
api-name: monitoring-metricsscope

java-vmwareengine/.OwlBot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ deep-copy-regex:
3232
- source: "/google/cloud/vmwareengine/(v.*)/.*-java/samples/snippets/generated"
3333
dest: "/owl-bot-staging/java-vmwareengine/$1/samples/snippets/generated"
3434

35-
api-name: java-vmwareengine
35+
api-name: vmwareengine

0 commit comments

Comments
 (0)