We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d4030f commit d2be5eaCopy full SHA for d2be5ea
src/sentry/scm/private/providers/gitlab.py
@@ -627,13 +627,15 @@ def make_result[T](
627
628
629
def map_repository(raw: dict[str, Any]) -> GitRepository:
630
+ statistics = raw.get("statistics")
631
+ repo_size = statistics.get("repository_size", 0) if statistics else 0
632
return GitRepository(
633
full_name=raw["path_with_namespace"],
634
default_branch=raw["default_branch"],
635
clone_url=raw["http_url_to_repo"],
636
private=raw["visibility"] != "public",
637
# GitLab returns size in bytes. We convert to kB to match GitHub
- size=raw["statistics"]["repository_size"] // 1000,
638
+ size=repo_size // 1000,
639
)
640
641
0 commit comments