Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Re-position template_id, and fix capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
RicePatrick committed Feb 28, 2022
1 parent d5d59a7 commit 707261f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion groups_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 707261f

Please sign in to comment.