Skip to content

Commit 707261f

Browse files
committed
Re-position template_id, and fix capitalization
1 parent d5d59a7 commit 707261f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

groups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ type Group struct {
4747
RequestAccessEnabled bool `json:"request_access_enabled"`
4848
FullName string `json:"full_name"`
4949
FullPath string `json:"full_path"`
50+
FileTemplateProjectID int `json:"file_template_project_id"`
5051
ParentID int `json:"parent_id"`
5152
Projects []*Project `json:"projects"`
5253
Statistics *StorageStatistics `json:"statistics"`
@@ -71,7 +72,6 @@ type Group struct {
7172
LDAPCN string `json:"ldap_cn"`
7273
LDAPAccess AccessLevelValue `json:"ldap_access"`
7374
LDAPGroupLinks []*LDAPGroupLink `json:"ldap_group_links"`
74-
FileTemplateProjectId int `json:"file_template_project_id"`
7575
SharedRunnersMinutesLimit int `json:"shared_runners_minutes_limit"`
7676
ExtraSharedRunnersMinutesLimit int `json:"extra_shared_runners_minutes_limit"`
7777
PreventForkingOutsideGroup bool `json:"prevent_forking_outside_group"`

groups_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func TestGetGroupWithFileTemplateId(t *testing.T) {
6464
t.Errorf("Groups.GetGroup returned error: %v", err)
6565
}
6666

67-
want := &Group{ID: 1, Name: "g", FileTemplateProjectId: 12345}
67+
want := &Group{ID: 1, Name: "g", FileTemplateProjectID: 12345}
6868
if !reflect.DeepEqual(want, group) {
6969
t.Errorf("Groups.GetGroup returned %+v, want %+v", group, want)
7070
}

0 commit comments

Comments
 (0)