Skip to content

baptiste preview does not work on geting individual repo or list of repos #3630

Closed
@ahmadnassri

Description

@ahmadnassri

What article on docs.github.com is affected?

https://docs.github.com/en/rest/reference/repos

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

currently the document lists examples of template_repository in the response objects of the following endpoints:

  • GET /repos/{owner}/{repo}
  • GET /users/{username}/repos
  • GET /orgs/{org}/repos

and hints at needing the application/vnd.github.baptiste-preview+json Accept header for enabling these properties.

However, this doesn't work, none of the endpoints return template_repository values for repositories that should.

Additional information

http https://api.github.com/orgs/{org}/repos?per_page=100 "Authorization: token $GH_TOKEN" "Accept: application/vnd.github.baptiste-preview+json" | jq .[].template_repository

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamrestContent related to rest - overview.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions