xanzy / go-gitlab

GitLab Go SDK
Apache License 2.0
2.37k stars 940 forks source link

Add `ContainerRegistrySize` field to `Statistics` struct #1978

Closed Florian3535 closed 1 month ago

Florian3535 commented 1 month ago

The ContainerRegistrySize field is missing from the Statistics struct.

The public GitLab API returns the container_registry_size field for project data. E.g. https://docs.gitlab.com/ee/api/projects.html#list-user-projects.

The public GitLab API does not return the container_registry_size field for group data. Thus, this change would cause that we always return the null value for ContainerRegistrySize when fetching groups, which is not optimal. However, we already always return the null value for the commit_count field in the Statistics struct when fetching groups, as we use the same Statistics struct for project and group data.