GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: OwlBot config to specify correct paths with module names (#8482) · niuhaijun/google-cloud-java@d42c6d5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • generation
    • set_owlbot_config.sh
  • java-accessapproval
    • .OwlBot.yaml
  • java-accesscontextmanager
    • .OwlBot.yaml
  • java-aiplatform
    • .OwlBot.yaml
  • java-analytics-admin
    • .OwlBot.yaml
  • java-analytics-data
    • .OwlBot.yaml
  • java-api-gateway
    • .OwlBot.yaml
  • java-apigee-connect
    • .OwlBot.yaml
  • java-apigee-registry
    • .OwlBot.yaml
  • java-appengine-admin
    • .OwlBot.yaml
  • java-area120-tables
    • .OwlBot.yaml
  • java-artifact-registry
    • .OwlBot.yaml
  • java-asset
    • .OwlBot.yaml
  • java-assured-workloads
    • .OwlBot.yaml
  • java-automl
    • .OwlBot.yaml
  • java-bare-metal-solution
    • .OwlBot.yaml
  • java-batch
    • .OwlBot.yaml
  • java-beyondcorp-appconnections
    • .OwlBot.yaml
  • java-beyondcorp-appconnectors
    • .OwlBot.yaml
  • java-beyondcorp-appgateways
    • .OwlBot.yaml
  • java-beyondcorp-clientconnectorservices
    • .OwlBot.yaml
  • java-beyondcorp-clientgateways
    • .OwlBot.yaml
  • java-bigquery-data-exchange
    • .OwlBot.yaml
  • java-bigqueryconnection
    • .OwlBot.yaml
  • java-bigquerydatatransfer
    • .OwlBot.yaml
  • java-bigquerymigration
    • .OwlBot.yaml
  • java-bigqueryreservation
    • .OwlBot.yaml
  • java-billingbudgets
    • .OwlBot.yaml
  • java-billing
    • .OwlBot.yaml
  • java-binary-authorization
    • .OwlBot.yaml
  • java-certificate-manager
    • .OwlBot.yaml
  • java-channel
    • .OwlBot.yaml
  • java-cloudbuild
    • .OwlBot.yaml
  • java-cloudcommerceconsumerprocurement
    • .OwlBot.yaml
  • java-compute
    • .OwlBot.yaml
  • java-contact-center-insights
    • .OwlBot.yaml
  • java-containeranalysis
    • .OwlBot.yaml
  • java-container
    • .OwlBot.yaml
  • java-data-fusion
    • .OwlBot.yaml
  • java-datacatalog
    • .OwlBot.yaml
  • java-dataflow
    • .OwlBot.yaml
  • java-dataform
    • .OwlBot.yaml
  • java-datalabeling
    • .OwlBot.yaml
  • java-dataplex
    • .OwlBot.yaml
  • java-dataproc-metastore
    • .OwlBot.yaml
  • java-datastream
    • .OwlBot.yaml
  • java-debugger-client
    • .OwlBot.yaml
  • java-deploy
    • .OwlBot.yaml
  • java-dialogflow-cx
    • .OwlBot.yaml
  • java-dialogflow
    • .OwlBot.yaml
  • java-dlp
    • .OwlBot.yaml
  • java-dms
    • .OwlBot.yaml
  • java-document-ai
    • .OwlBot.yaml
  • java-domains
    • .OwlBot.yaml
  • java-errorreporting
    • .OwlBot.yaml
  • java-essential-contacts
    • .OwlBot.yaml
  • java-eventarc-publishing
    • .OwlBot.yaml
  • java-eventarc
    • .OwlBot.yaml
  • java-filestore
    • .OwlBot.yaml
  • java-functions
    • .OwlBot.yaml
  • java-game-servers
    • .OwlBot.yaml
  • java-gke-backup
    • .OwlBot.yaml
  • java-gke-connect-gateway
    • .OwlBot.yaml
  • java-gke-multi-cloud
    • .OwlBot.yaml
  • java-gkehub
    • .OwlBot.yaml
  • java-grafeas
    • .OwlBot.yaml
  • java-gsuite-addons
    • .OwlBot.yaml
  • java-iam-admin
    • .OwlBot.yaml
  • java-iamcredentials
    • .OwlBot.yaml
  • java-ids
    • .OwlBot.yaml
  • java-iot
    • .OwlBot.yaml
  • java-kms
    • .OwlBot.yaml
  • java-language
    • .OwlBot.yaml
  • java-life-sciences
    • .OwlBot.yaml
  • java-managed-identities
    • .OwlBot.yaml
  • java-mediatranslation
    • .OwlBot.yaml
  • java-memcache
    • .OwlBot.yaml
  • java-monitoring-dashboards
    • .OwlBot.yaml
  • java-monitoring
    • .OwlBot.yaml
  • java-network-management
    • .OwlBot.yaml
  • java-network-security
    • .OwlBot.yaml
  • java-networkconnectivity
    • .OwlBot.yaml
  • java-notebooks
    • .OwlBot.yaml
  • java-optimization
    • .OwlBot.yaml
  • java-orchestration-airflow
    • .OwlBot.yaml
  • java-orgpolicy
    • .OwlBot.yaml
  • java-os-config
    • .OwlBot.yaml
  • java-os-login
    • .OwlBot.yaml
  • java-phishingprotection
    • .OwlBot.yaml
  • java-policy-troubleshooter
    • .OwlBot.yaml
  • java-private-catalog
    • .OwlBot.yaml
  • java-profiler
    • .OwlBot.yaml
  • java-recaptchaenterprise
    • .OwlBot.yaml
  • java-recommendations-ai
    • .OwlBot.yaml
  • java-recommender
    • .OwlBot.yaml
  • java-redis
    • .OwlBot.yaml
  • java-resource-settings
    • .OwlBot.yaml
  • java-resourcemanager
    • .OwlBot.yaml
  • java-retail
    • .OwlBot.yaml
  • java-run
    • .OwlBot.yaml
  • java-scheduler
    • .OwlBot.yaml
  • java-secretmanager
    • .OwlBot.yaml
  • java-security-private-ca
    • .OwlBot.yaml
  • java-securitycenter-settings
    • .OwlBot.yaml
  • java-securitycenter
    • .OwlBot.yaml
  • java-service-control
    • .OwlBot.yaml
  • java-service-management
    • .OwlBot.yaml
  • java-service-usage
    • .OwlBot.yaml
  • java-servicedirectory
    • .OwlBot.yaml
  • java-shell
    • .OwlBot.yaml
  • java-speech
    • .OwlBot.yaml
  • java-storage-transfer
    • .OwlBot.yaml
  • java-talent
    • .OwlBot.yaml
  • java-tasks
    • .OwlBot.yaml
  • java-texttospeech
    • .OwlBot.yaml
  • java-tpu
    • .OwlBot.yaml
  • java-trace
    • .OwlBot.yaml
  • java-translate
    • .OwlBot.yaml
  • java-video-intelligence
    • .OwlBot.yaml
  • java-video-live-stream
    • .OwlBot.yaml
  • java-video-stitcher
    • .OwlBot.yaml
  • java-video-transcoder
    • .OwlBot.yaml
  • java-vision
    • .OwlBot.yaml
  • java-vmmigration
    • .OwlBot.yaml
  • java-vpcaccess
    • .OwlBot.yaml
  • java-webrisk
    • .OwlBot.yaml
  • java-websecurityscanner
    • .OwlBot.yaml
  • java-workflow-executions
    • .OwlBot.yaml
  • java-workflows
    • .OwlBot.yaml

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎generation/set_owlbot_config.sh‎

Copy file name to clipboard
+44Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
# Adds module directory name into the paths in a OwlBot configuration file so
4+
# that the paths correctly reference the files under the modules in this monorepo.
5+
#
6+
# Usage:
7+
# set_owlbot_config.sh <.OwlBot.yaml path from the root>
8+
# Example:
9+
# $ set_owlbot_config.sh java-dataform/.OwlBot.yaml
10+
#
11+
# To apply the change to all OwlBot configuration files in all modules:
12+
# $ for F in `find . -maxdepth 2 -name '.OwlBot.yaml'`; do sh generation/set_owlbot_config.sh $F; done
13+
OWLBOT_FILE=$1
14+
15+
if [ -z "${OWLBOT_FILE}" ]; then
16+
echo "Please specify file name"
17+
exit 1
18+
fi
19+
20+
if [ ! -r "${OWLBOT_FILE}" ]; then
21+
echo "File not found"
22+
exit 1
23+
fi
24+
25+
dir_name=$(dirname "${OWLBOT_FILE}")
26+
module_name=$(basename "${dir_name}")
27+
28+
if [ ! -d "${module_name}" ]; then
29+
echo "module ${module_name} does not exist"
30+
exit 1
31+
fi
32+
33+
# For deep-remove-regex and deep-preserve-regex fields
34+
sed -i "s|\"/grpc-google|\"/${module_name}/grpc-google|" "${OWLBOT_FILE}"
35+
sed -i "s|\"/proto-google|\"/${module_name}/proto-google|" "${OWLBOT_FILE}"
36+
sed -i "s|\"/google-\.\*|\"/${module_name}/google-.*|" "${OWLBOT_FILE}"
37+
sed -i "s|\"/google-cloud|\"/${module_name}/google-cloud|" "${OWLBOT_FILE}"
38+
sed -i "s|\"/samples|\"/${module_name}/samples|" "${OWLBOT_FILE}"
39+
40+
# In monorepo, the staging directory structure tells the destination module to
41+
# which the OwlBot Java postprocessor copies the files.
42+
if grep --quiet 'owl-bot-staging/$1' "${OWLBOT_FILE}"; then
43+
sed -i "s|owl-bot-staging|owl-bot-staging/${module_name}|" "${OWLBOT_FILE}"
44+
fi
Collapse file

‎java-accessapproval/.OwlBot.yaml‎

Copy file name to clipboardExpand all lines: java-accessapproval/.OwlBot.yaml
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515

1616
deep-remove-regex:
17-
- "/grpc-google-.*/src"
18-
- "/proto-google-.*/src"
19-
- "/google-.*/src"
20-
- "/samples/snippets/generated"
17+
- "/java-accessapproval/grpc-google-.*/src"
18+
- "/java-accessapproval/proto-google-.*/src"
19+
- "/java-accessapproval/google-.*/src"
20+
- "/java-accessapproval/samples/snippets/generated"
2121

2222
deep-preserve-regex:
23-
- "/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/it"
23+
- "/java-accessapproval/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/it"
2424

2525
deep-copy-regex:
2626
- source: "/google/cloud/accessapproval/(v.*)/.*-java/proto-google-.*/src"
Collapse file

‎java-accesscontextmanager/.OwlBot.yaml‎

Copy file name to clipboardExpand all lines: java-accesscontextmanager/.OwlBot.yaml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515

1616
deep-remove-regex:
17-
- "/proto-google-.*/src"
17+
- "/java-accesscontextmanager/proto-google-.*/src"
1818

1919
deep-preserve-regex:
20-
- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
20+
- "/java-accesscontextmanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
2121

2222
deep-copy-regex:
2323
- source: "/google/identity/accesscontextmanager/(v\\d)/.*-java/proto-google-.*/src"
Collapse file

‎java-aiplatform/.OwlBot.yaml‎

Copy file name to clipboardExpand all lines: java-aiplatform/.OwlBot.yaml
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515

1616
deep-remove-regex:
17-
- "/grpc-google-.*/src"
18-
- "/proto-google-.*/src"
19-
- "/google-.*/src/main/java/com/google/cloud/aiplatform/v1"
20-
- "/google-.*/src/main/java/com/google/cloud/aiplatform/v1beta1"
17+
- "/java-aiplatform/grpc-google-.*/src"
18+
- "/java-aiplatform/proto-google-.*/src"
19+
- "/java-aiplatform/google-.*/src/main/java/com/google/cloud/aiplatform/v1"
20+
- "/java-aiplatform/google-.*/src/main/java/com/google/cloud/aiplatform/v1beta1"
2121

2222
deep-copy-regex:
2323
- source: "/google/cloud/aiplatform/(v.*)/.*-java/proto-google-.*/src"
Collapse file

‎java-analytics-admin/.OwlBot.yaml‎

Copy file name to clipboardExpand all lines: java-analytics-admin/.OwlBot.yaml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515

1616
deep-remove-regex:
17-
- "/grpc-google-.*/src"
18-
- "/proto-google-.*/src"
19-
- "/google-.*/src"
17+
- "/java-analytics-admin/grpc-google-.*/src"
18+
- "/java-analytics-admin/proto-google-.*/src"
19+
- "/java-analytics-admin/google-.*/src"
2020

2121
deep-copy-regex:
2222
- source: "/google/analytics/admin/(v.*)/.*-java/proto-google-.*/src"
Collapse file

‎java-analytics-data/.OwlBot.yaml‎

Copy file name to clipboardExpand all lines: java-analytics-data/.OwlBot.yaml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515

1616
deep-remove-regex:
17-
- "/grpc-google-.*/src"
18-
- "/proto-google-.*/src"
19-
- "/google-.*/src"
17+
- "/java-analytics-data/grpc-google-.*/src"
18+
- "/java-analytics-data/proto-google-.*/src"
19+
- "/java-analytics-data/google-.*/src"
2020

2121
deep-copy-regex:
2222
- source: "/google/analytics/data/(v.*)/.*-java/proto-google-.*/src"
Collapse file

‎java-api-gateway/.OwlBot.yaml‎

Copy file name to clipboardExpand all lines: java-api-gateway/.OwlBot.yaml
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515

1616
deep-remove-regex:
17-
- "/samples/snippets/generated"
18-
- "/grpc-google-.*/src"
19-
- "/proto-google-.*/src"
20-
- "/google-.*/src"
17+
- "/java-api-gateway/samples/snippets/generated"
18+
- "/java-api-gateway/grpc-google-.*/src"
19+
- "/java-api-gateway/proto-google-.*/src"
20+
- "/java-api-gateway/google-.*/src"
2121

2222
deep-preserve-regex:
23-
- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
23+
- "/java-api-gateway/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
2424

2525
deep-copy-regex:
2626
- source: "/google/cloud/apigateway/(v.*)/.*-java/proto-google-.*/src"
Collapse file

‎java-apigee-connect/.OwlBot.yaml‎

Copy file name to clipboardExpand all lines: java-apigee-connect/.OwlBot.yaml
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515

1616
deep-remove-regex:
17-
- "/samples/snippets/generated"
18-
- "/grpc-google-.*/src"
19-
- "/proto-google-.*/src"
20-
- "/google-.*/src"
17+
- "/java-apigee-connect/samples/snippets/generated"
18+
- "/java-apigee-connect/grpc-google-.*/src"
19+
- "/java-apigee-connect/proto-google-.*/src"
20+
- "/java-apigee-connect/google-.*/src"
2121

2222
deep-copy-regex:
2323
- source: "/google/cloud/apigeeconnect/(v.*)/.*-java/proto-google-.*/src"
Collapse file

‎java-apigee-registry/.OwlBot.yaml‎

Copy file name to clipboardExpand all lines: java-apigee-registry/.OwlBot.yaml
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515

1616
deep-remove-regex:
17-
- "/grpc-google-.*/src"
18-
- "/proto-google-.*/src"
19-
- "/google-.*/src"
20-
- "/samples/snippets/generated"
17+
- "/java-apigee-registry/grpc-google-.*/src"
18+
- "/java-apigee-registry/proto-google-.*/src"
19+
- "/java-apigee-registry/google-.*/src"
20+
- "/java-apigee-registry/samples/snippets/generated"
2121

2222
deep-preserve-regex:
23-
- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
23+
- "/java-apigee-registry/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
2424

2525
deep-copy-regex:
2626
- source: "/google/cloud/apigeeregistry/(v.*)/.*-java/proto-google-.*/src"
Collapse file

‎java-appengine-admin/.OwlBot.yaml‎

Copy file name to clipboardExpand all lines: java-appengine-admin/.OwlBot.yaml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515

1616
deep-remove-regex:
17-
- "/grpc-google-.*/src"
18-
- "/proto-google-.*/src"
19-
- "/google-.*/src"
17+
- "/java-appengine-admin/grpc-google-.*/src"
18+
- "/java-appengine-admin/proto-google-.*/src"
19+
- "/java-appengine-admin/google-.*/src"
2020

2121
deep-copy-regex:
2222
- source: "/google/appengine/(v.*)/.*-java/proto-google-.*/src"

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.