From 707261f9191fc777a4daa4720bcc1877fb3b454e Mon Sep 17 00:00:00 2001 From: Patrick Rice Date: Mon, 28 Feb 2022 20:56:40 +0000 Subject: [PATCH] Re-position template_id, and fix capitalization --- groups.go | 2 +- groups_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/groups.go b/groups.go index 172a5f767..28174cb1b 100644 --- a/groups.go +++ b/groups.go @@ -47,6 +47,7 @@ type Group struct { RequestAccessEnabled bool `json:"request_access_enabled"` FullName string `json:"full_name"` FullPath string `json:"full_path"` + FileTemplateProjectID int `json:"file_template_project_id"` ParentID int `json:"parent_id"` Projects []*Project `json:"projects"` Statistics *StorageStatistics `json:"statistics"` @@ -71,7 +72,6 @@ type Group struct { LDAPCN string `json:"ldap_cn"` LDAPAccess AccessLevelValue `json:"ldap_access"` LDAPGroupLinks []*LDAPGroupLink `json:"ldap_group_links"` - FileTemplateProjectId int `json:"file_template_project_id"` SharedRunnersMinutesLimit int `json:"shared_runners_minutes_limit"` ExtraSharedRunnersMinutesLimit int `json:"extra_shared_runners_minutes_limit"` PreventForkingOutsideGroup bool `json:"prevent_forking_outside_group"` diff --git a/groups_test.go b/groups_test.go index da09beb02..f673bed8b 100644 --- a/groups_test.go +++ b/groups_test.go @@ -64,7 +64,7 @@ func TestGetGroupWithFileTemplateId(t *testing.T) { t.Errorf("Groups.GetGroup returned error: %v", err) } - want := &Group{ID: 1, Name: "g", FileTemplateProjectId: 12345} + want := &Group{ID: 1, Name: "g", FileTemplateProjectID: 12345} if !reflect.DeepEqual(want, group) { t.Errorf("Groups.GetGroup returned %+v, want %+v", group, want) }