Skip to content

Unable to set Pages to main /docs via API #2371

@ghostinthewires

Description

@ghostinthewires

// PagesUpdate sets up parameters needed to update a GitHub Pages site.

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".

I can set this using the UI "main /docs" but trying to do it with the API gives the above error.

Happy to update myself via PR if you can point me in the right direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions