Skip to content

API docs for creating a repository using a template don't indicate that template can also be public #19122

Closed
@dmalan

Description

@dmalan

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/rest/repos/repos#create-a-repository-using-a-template

What part(s) of the article would you like to see updated?

Currently, the docs say:

The authenticated user must own or be a member of an organization that owns the repository.

Ideally, docs would say, e.g.:

Either the repository must be public or the authenticated user must own or be a member of an organization that owns the repository.

Additional information

Confirmed with curl that a repo can indeed be created from a public template repository, even when authenticated user does not own that repository or its parent organization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamrestContent related to rest - overview.waiting for reviewIssue/PR is waiting for a writer's review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions