Skip to content

Commit

Permalink
chore: owlbot.py to tell it's monorepo (#8718)
Browse files Browse the repository at this point in the history
* chore: owlbot.py to tell the monorepo

* format

* templates
  • Loading branch information
suztomo authored Nov 7, 2022
1 parent 57025df commit b6c307c
Show file tree
Hide file tree
Showing 141 changed files with 141 additions and 141 deletions.
2 changes: 1 addition & 1 deletion generation/new_client/templates/owlbot.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ for library in s.get_staging_dirs():
s.move(library)

s.remove_staging_dirs()
{% if should_include_templates %}java.common_templates({% if template_excludes %}excludes={{ template_excludes }}{% endif %}){% endif %}
{% if should_include_templates %}java.common_templates(monorepo=True, {% if template_excludes %}excludes={{ template_excludes }}{% endif %}){% endif %}
2 changes: 1 addition & 1 deletion generation/update_owlbot_postprocessor_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for dir in $(find . -mindepth 2 -maxdepth 2 -name owlbot.py | sort | xargs dirna
pushd "$dir"

# form a perl command to replace java.common_templates() invocation
perl_command='s/java\.common_templates\(.*\)/java.common_templates(excludes=['
perl_command='s/java\.common_templates\(.*\)/java.common_templates(monorepo=True, excludes=['
comma=""
for exclusion in '.github/*' '.kokoro/*' 'samples/*' 'CODE_OF_CONDUCT.md' 'CONTRIBUTING.md' 'LICENSE' 'SECURITY.md' 'java.header' 'license-checks.xml' 'renovate.json' '.gitignore'; do
perl_command+="${comma}\n $(echo "\"${exclusion}\"" | sed 's/\//\\\//g')"
Expand Down
2 changes: 1 addition & 1 deletion java-accessapproval/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-accesscontextmanager/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-aiplatform/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-analytics-admin/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-analytics-data/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-analyticshub/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-api-gateway/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-apigee-connect/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-apigee-registry/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-apikeys/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-appengine-admin/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-area120-tables/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-artifact-registry/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-asset/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-assured-workloads/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-automl/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-bare-metal-solution/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-batch/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-beyondcorp-appconnections/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-beyondcorp-appconnectors/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-beyondcorp-appgateways/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-beyondcorp-clientconnectorservices/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-beyondcorp-clientgateways/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-bigquery-data-exchange/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-bigqueryconnection/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-bigquerydatapolicy/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-bigquerydatatransfer/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-bigquerymigration/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-bigqueryreservation/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-billing/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-billingbudgets/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-binary-authorization/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-certificate-manager/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-channel/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-cloudbuild/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-cloudcommerceconsumerprocurement/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-compute/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-contact-center-insights/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-container/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-containeranalysis/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-contentwarehouse/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
2 changes: 1 addition & 1 deletion java-data-fusion/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=[
java.common_templates(monorepo=True, excludes=[
".github/*",
".kokoro/*",
"samples/*",
Expand Down
Loading

0 comments on commit b6c307c

Please sign in to comment.