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

Commit

Permalink
Use standard naming convention for initialisms
Browse files Browse the repository at this point in the history
  • Loading branch information
heidiberry committed Nov 3, 2024
1 parent c208ef8 commit fb6678a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (s *PagesService) GetPages(gid interface{}, options ...RequestOptionFunc) (
// https://docs.gitlab.com/ee/api/pages.html#update-pages-settings-for-a-project
type UpdatePagesOptions struct {
PagesUniqueDomainEnabled *bool `url:"pages_unique_domain_enabled,omitempty" json:"pages_unique_domain_enabled,omitempty"`
PagesHttpsOnly *bool `url:"pages_https_only,omitempty" json:"pages_https_only,omitempty"`
PagesHTTPSOnly *bool `url:"pages_https_only,omitempty" json:"pages_https_only,omitempty"`
}

// UpdatePages updates Pages settings for a project. The user must have
Expand Down
2 changes: 1 addition & 1 deletion pages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func TestUpdatePages(t *testing.T) {

p, resp, err := client.Pages.UpdatePages(2, UpdatePagesOptions{
PagesUniqueDomainEnabled: Ptr(true),
PagesHttpsOnly: Ptr(false),
PagesHTTPSOnly: Ptr(false),
})
require.NoError(t, err)
require.NotNil(t, resp)
Expand Down

0 comments on commit fb6678a

Please sign in to comment.