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

Add support for updating a project's GitLab Pages settings #2053

Merged
merged 2 commits into from
Nov 3, 2024

Conversation

heidiberry
Copy link
Contributor

Adds support for the Update Pages settings for a project endpoint: https://docs.gitlab.com/ee/api/pages.html#update-pages-settings-for-a-project

pages.go Outdated
// 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"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
PagesHttpsOnly *bool `url:"pages_https_only,omitempty" json:"pages_https_only,omitempty"`
PagesHTTPSOnly *bool `url:"pages_https_only,omitempty" json:"pages_https_only,omitempty"`

Copy link
Member

@svanharmelen svanharmelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍🏻

@svanharmelen svanharmelen merged commit bc6554d into xanzy:main Nov 3, 2024
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants