-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore: exclude and remove unnecessary owlbot postprocessor templates #8492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| done | ||
| perl_command+='\n])/s' | ||
| # execute the replacement in owlbot.py | ||
| perl -0pe "$perl_command" 'owlbot.py' > 'owlbot.py.new' && rm 'owlbot.py' && mv 'owlbot.py.new' 'owlbot.py' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a better approach is to fix OwlBot Java PostProcessor to use a new template specific to monorepo.
Currently it uses the same template as split repos (both hand-written and auto-generated) https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/java_library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where's the new template? Note that we can't simply replace all of the owlbot.py configs in every module because many of them have various customizations. Example: https://github.com/googleapis/google-cloud-java/blob/main/java-vision/owlbot.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| java.common_templates(excludes=[ | ||
| ".github/*", | ||
| ".kokoro/*", | ||
| ".samples/*", | ||
| "CODE_OF_CONDUCT.md", | ||
| "CONTRIBUTING.md", | ||
| "LICENSE", | ||
| "SECURITY.md", | ||
| "java.header", | ||
| "license-checks.xml", | ||
| "renovate.json" | ||
| ]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
…oogleapis#8492) * chore: exclude and remove unnecessary templates * chore: apply update_owlbot_postprocessor_config.sh
This PR adds a script to remove and exclude the OwlBot Post-processor templates that are no longer needed, and also applies the script to the repo in a separate commit.