-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
The https://pkg.go.dev/github.com/google/go-github/v41/github#RepositoriesService.UpdatePages API only currently supports updating the CNAME and source properties:
go-github/github/repos_pages.go
Lines 90 to 98 in 178169f
// PagesUpdate sets up parameters needed to update a GitHub Pages site. | |
type PagesUpdate struct { | |
// CNAME represents a custom domain for the repository. | |
// Leaving CNAME empty will remove the custom domain. | |
CNAME *string `json:"cname"` | |
// Source must include the branch name, and may optionally specify the subdirectory "/docs". | |
// Possible values are: "gh-pages", "master", and "master /docs". | |
Source *string `json:"source,omitempty"` | |
} |
There are additional parameters which would be useful for consumers (i.e. terraform provider) to be able to update (see https://docs.github.com/en/rest/reference/pages#update-information-about-a-github-pages-site for reference):
- https_enforced
- public
gmlewis