Closed simonw closed 4 years ago
I'm sure this used to work, but right now repositories are fetched without their topics.
https://developer.github.com/v3/repos/ says you need to send a custom Accept header of application/vnd.github.mercy-preview+json to get topics.
Accept
application/vnd.github.mercy-preview+json
I'm already doing this here: https://github.com/dogsheep/github-to-sqlite/blob/c4aaa50e167cfa9021c7c94260bc3e89e10947bf/github_to_sqlite/utils.py#L246-L250
Aha! it was missing from the fetch_repo() function.
fetch_repo()
I'm sure this used to work, but right now repositories are fetched without their topics.
https://developer.github.com/v3/repos/ says you need to send a custom
Accept
header ofapplication/vnd.github.mercy-preview+json
to get topics.