Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions .github/release-note-generation/split_release_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,29 +63,16 @@ 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-hermetic.yaml'
if not module_pom_xml.exists():
continue
tree = ET.parse(module_pom_xml)
root = tree.getroot()
version = root.find('mvn:version', POM_NAMESPACES).text
api_name = None
if owlbot_yaml_path.exists():
# If OwlBot configuration file exists (most cases), it's the better
# source to get the OwlBot-generated pull request title prefix than
# the repo-metadata.json
with open(owlbot_yaml_path, 'r') as file:
owlbot_yaml_content = file.read()
match = re.search(r'api-name: (.+)', owlbot_yaml_content)
if match:
api_name = match.group(1)

if not api_name:
# Fallback to repo-metadata.json (e.g. for vertexai or Spanner transitional state)
if repo_metadata_path.exists():
with open(repo_metadata_path, 'r') as file:
repo_metadata = json.load(file)
api_name = repo_metadata.get('api_shortname')
if repo_metadata_path.exists():
with open(repo_metadata_path, 'r') as file:
repo_metadata = json.load(file)
api_name = repo_metadata.get('api_shortname')

if api_name:
modules.append(LibraryModule(module_path, api_name,
Expand All @@ -94,7 +81,6 @@ def detect_modules(root_directory: Path):
else:
raise Exception(f'Could not determine api-name for {repo_metadata_path}')


return modules


Expand Down
36 changes: 0 additions & 36 deletions java-accessapproval/.OwlBot-hermetic.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions java-accesscontextmanager/.OwlBot-hermetic.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions java-admanager/.OwlBot-hermetic.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions java-advisorynotifications/.OwlBot-hermetic.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions java-aiplatform/.OwlBot-hermetic.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions java-alloydb-connectors/.OwlBot-hermetic.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions java-alloydb/.OwlBot-hermetic.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions java-analytics-admin/.OwlBot-hermetic.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions java-analytics-data/.OwlBot-hermetic.yaml

This file was deleted.

Loading
Loading