Skip to content

Commit

Permalink
chore: Disable OwlBot PRs. (#10696)
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeli0 committed Apr 15, 2024
1 parent a1e72bb commit 8cac6d6
Show file tree
Hide file tree
Showing 185 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/release-note-generation/split_release_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# https://github.com/googleapis/google-cloud-java/pull/9502 --json body
# --jq '.body'`
# 2nd argument: the path to a directory that whose child directories contain
# ".OwlBot.yaml", "pom.xml", and "CHANGELOG.md". It's the root directory
# ".Owlbot-hermetic.yaml", "pom.xml", and "CHANGELOG.md". It's the root directory
# of the google-cloud-java repository.
# Example:
# google-cloud-java$ python3 split_release_note.py main_changelog.txt .
Expand Down Expand Up @@ -46,7 +46,7 @@ def detect_modules(root_directory: Path):

module_path = repo_metadata_path.parent
module_pom_xml = module_path / 'pom.xml'
owlbot_yaml_path = module_path/ '.OwlBot.yaml'
owlbot_yaml_path = module_path/ '.OwlBot-hermetic.yaml'
if not module_pom_xml.exists():
continue
tree = ET.parse(module_pom_xml)
Expand Down Expand Up @@ -166,7 +166,7 @@ def main():
break


# Step 2: Detects target modules by .OwlBot.yaml for api-name: field.
# Step 2: Detects target modules by .Owlbot-hermetic.yaml for api-name: field.
root_directory = sys.argv[2]
modules = detect_modules(Path(root_directory))
api_to_modules = {module.api_name: module for module in modules}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/generated_files_sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ jobs:
run: git --no-pager diff --exit-code

owlbot-yaml:
# Each module's .Owlbot.yaml config is configured according to set_owlbot_config.sh
# Each module's .Owlbot-hermetic.yaml config is configured according to set_owlbot_config.sh
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check if .Owlbot.yaml files are correctly configured
- name: Check if .Owlbot-hermetic.yaml files are correctly configured
run: |
bash generation/set_owlbot_config.sh
- name: Fail if there's any difference (To fix, run generation/set_owlbot_config.sh)
Expand Down
8 changes: 4 additions & 4 deletions generation/set_owlbot_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
# that the paths correctly reference the files under the modules in this monorepo.
#
# Usage:
# set_owlbot_config.sh <.OwlBot.yaml path from the root>
# set_owlbot_config.sh <.Owlbot-hermetic.yaml path from the root>
# Example:
# $ set_owlbot_config.sh java-dataform/.OwlBot.yaml
# $ set_owlbot_config.sh java-dataform/.Owlbot-hermetic.yaml
#
# To apply the change to all OwlBot configuration files in all modules:
# $ for F in `find . -maxdepth 2 -name '.OwlBot.yaml'`; do sh generation/set_owlbot_config.sh $F; done
# $ for F in `find . -maxdepth 2 -name '.Owlbot-hermetic.yaml'`; do sh generation/set_owlbot_config.sh $F; done

for F in `find . -maxdepth 2 -name '.OwlBot.yaml'`;
for F in `find . -maxdepth 2 -name '.Owlbot-hermetic.yaml'`;
do

OWLBOT_FILE=$F
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8cac6d6

Please sign in to comment.