Skip to content

Support additional GitHub pages update parameters #2261

Closed

Description

@pkwarren

The https://pkg.go.dev/github.com/google/go-github/v41/github#RepositoriesService.UpdatePages API only currently supports updating the CNAME and source properties:

// 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

Activity

  1. gmlewis commented on Jan 21, 2022

    @gmlewis
    Collaborator

    Thank you, @pkwarren !

    This would be a great PR for any new contributor to this repo or a new Go developer.
    All contributions are greatly appreciated!

    Feel free to volunteer for any issue and the issue can be assigned to you so that others don't attempt to duplicate the work.

    Please check out our CONTRIBUTING.md guide to get started. (In particular, please remember to go generate ./... and don't use force-push to your PRs.)

    Thank you!

  2. added a commit that references this issue on Jan 22, 2022
    975d1d0
  3. added a commit that references this issue on Jun 28, 2026
    852d8e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions