Sitelet https://web.archive.org/web/20210212024449/https://github.com/github/docs/issues/3630
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ahmadnassri opened this issue Feb 12, 2021 · 1 comment
Open
Labels

Comments

@ahmadnassri
Copy link

@ahmadnassri ahmadnassri commented Feb 12, 2021

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

@welcome
Copy link

@welcome welcome bot commented Feb 12, 2021

Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

@github-actions github-actions bot added the triage label Feb 12, 2021
@github-actions github-actions bot added this to Triage in Docs team reviews Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant