Skip to content

Commit

Permalink
Add support for additional PagesUpdate parameters (#2266)
Browse files Browse the repository at this point in the history
Fixes: #2261.
  • Loading branch information
quinqu committed Jan 22, 2022
1 parent d4c1caf commit 975d1d0
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
16 changes: 16 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions github/repos_pages.go
Expand Up @@ -95,6 +95,13 @@ type PagesUpdate struct {
// 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"`
// Public configures access controls for the site.
// If "true", the site will be accessible to anyone on the internet. If "false",
// the site will be accessible to anyone with read access to the repository that
// published the site.
Public *bool `json:"public,omitempty"`
// HTTPSEnforced specifies whether HTTPS should be enforced for the repository.
HTTPSEnforced *bool `json:"https_enforced,omitempty"`
}

// UpdatePages updates GitHub Pages for the named repo.
Expand Down

0 comments on commit 975d1d0

Please sign in to comment.