From 2049dd4cfa874b885dace73ad332c3d4da24ea69 Mon Sep 17 00:00:00 2001 From: nwestbury Date: Mon, 31 Jul 2023 09:47:51 +0100 Subject: [PATCH 1/3] Add repository storage to groups --- groups.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groups.go b/groups.go index 8966db31c..771d1401d 100644 --- a/groups.go +++ b/groups.go @@ -86,6 +86,7 @@ type Group struct { CreatedAt *time.Time `json:"created_at"` IPRestrictionRanges string `json:"ip_restriction_ranges"` WikiAccessLevel AccessControlValue `json:"wiki_access_level"` + RepositoryStorage string `json:"repository_storage"` } // GroupAvatar represents a GitLab group avatar. @@ -138,6 +139,7 @@ type ListGroupsOptions struct { Statistics *bool `url:"statistics,omitempty" json:"statistics,omitempty"` TopLevelOnly *bool `url:"top_level_only,omitempty" json:"top_level_only,omitempty"` WithCustomAttributes *bool `url:"with_custom_attributes,omitempty" json:"with_custom_attributes,omitempty"` + RepositoryStorage *string `url:"repository_storage,omitempty" json:"repository_storage,omitempty"` } // ListGroups gets a list of groups (as user: my groups, as admin: all groups). From b2fe29400c929754e084a6c8f1964534d0eeef22 Mon Sep 17 00:00:00 2001 From: nwestbury Date: Mon, 31 Jul 2023 10:32:50 +0100 Subject: [PATCH 2/3] Sort ListGroupsOptions --- groups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groups.go b/groups.go index 771d1401d..570281025 100644 --- a/groups.go +++ b/groups.go @@ -133,13 +133,13 @@ type ListGroupsOptions struct { MinAccessLevel *AccessLevelValue `url:"min_access_level,omitempty" json:"min_access_level,omitempty"` OrderBy *string `url:"order_by,omitempty" json:"order_by,omitempty"` Owned *bool `url:"owned,omitempty" json:"owned,omitempty"` + RepositoryStorage *string `url:"repository_storage,omitempty" json:"repository_storage,omitempty"` Search *string `url:"search,omitempty" json:"search,omitempty"` SkipGroups *[]int `url:"skip_groups,omitempty" del:"," json:"skip_groups,omitempty"` Sort *string `url:"sort,omitempty" json:"sort,omitempty"` Statistics *bool `url:"statistics,omitempty" json:"statistics,omitempty"` TopLevelOnly *bool `url:"top_level_only,omitempty" json:"top_level_only,omitempty"` WithCustomAttributes *bool `url:"with_custom_attributes,omitempty" json:"with_custom_attributes,omitempty"` - RepositoryStorage *string `url:"repository_storage,omitempty" json:"repository_storage,omitempty"` } // ListGroups gets a list of groups (as user: my groups, as admin: all groups). From de4ff04d98a2658be0cf7d0962fa22a20d9199d0 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Fri, 4 Aug 2023 18:35:25 +0200 Subject: [PATCH 3/3] Update ordering --- groups.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/groups.go b/groups.go index 570281025..4a9a996d9 100644 --- a/groups.go +++ b/groups.go @@ -50,6 +50,7 @@ type Group struct { AvatarURL string `json:"avatar_url"` WebURL string `json:"web_url"` RequestAccessEnabled bool `json:"request_access_enabled"` + RepositoryStorage string `json:"repository_storage"` FullName string `json:"full_name"` FullPath string `json:"full_path"` FileTemplateProjectID int `json:"file_template_project_id"` @@ -86,7 +87,6 @@ type Group struct { CreatedAt *time.Time `json:"created_at"` IPRestrictionRanges string `json:"ip_restriction_ranges"` WikiAccessLevel AccessControlValue `json:"wiki_access_level"` - RepositoryStorage string `json:"repository_storage"` } // GroupAvatar represents a GitLab group avatar. @@ -129,17 +129,17 @@ type SAMLGroupLink struct { // GitLab API docs: https://docs.gitlab.com/ee/api/groups.html#list-groups type ListGroupsOptions struct { ListOptions + SkipGroups *[]int `url:"skip_groups,omitempty" del:"," json:"skip_groups,omitempty"` AllAvailable *bool `url:"all_available,omitempty" json:"all_available,omitempty"` - MinAccessLevel *AccessLevelValue `url:"min_access_level,omitempty" json:"min_access_level,omitempty"` - OrderBy *string `url:"order_by,omitempty" json:"order_by,omitempty"` - Owned *bool `url:"owned,omitempty" json:"owned,omitempty"` - RepositoryStorage *string `url:"repository_storage,omitempty" json:"repository_storage,omitempty"` Search *string `url:"search,omitempty" json:"search,omitempty"` - SkipGroups *[]int `url:"skip_groups,omitempty" del:"," json:"skip_groups,omitempty"` + OrderBy *string `url:"order_by,omitempty" json:"order_by,omitempty"` Sort *string `url:"sort,omitempty" json:"sort,omitempty"` Statistics *bool `url:"statistics,omitempty" json:"statistics,omitempty"` - TopLevelOnly *bool `url:"top_level_only,omitempty" json:"top_level_only,omitempty"` WithCustomAttributes *bool `url:"with_custom_attributes,omitempty" json:"with_custom_attributes,omitempty"` + Owned *bool `url:"owned,omitempty" json:"owned,omitempty"` + MinAccessLevel *AccessLevelValue `url:"min_access_level,omitempty" json:"min_access_level,omitempty"` + TopLevelOnly *bool `url:"top_level_only,omitempty" json:"top_level_only,omitempty"` + RepositoryStorage *string `url:"repository_storage,omitempty" json:"repository_storage,omitempty"` } // ListGroups gets a list of groups (as user: my groups, as admin: all groups).