Skip to content

Commit

Permalink
chore(python): add repository_name to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Oct 31, 2024
1 parent 0da1658 commit 068885f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synthtool/gcp/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,11 @@ def _load_generic_metadata(self, metadata: Dict, relative_dir=None):
if "repo" not in metadata:
metadata["repo"] = _load_repo_metadata(relative_dir=relative_dir)

if "repo" in metadata["repo"]:
repo = git.parse_repo_url(metadata["repo"]["repo"])

metadata["repository_name"] = repo["name"]


def detect_versions(
path: str = "./src",
Expand Down

0 comments on commit 068885f

Please sign in to comment.